API indexof
API toUpperCase()用法及实例:
package daysreplace;
import java.util.Locale;
public class IndexofApiTest {
public static void main(String[] args) {
String str = "nanyanghhhhh";
String bigStr = "KKKKAAAAHHHH";
System.out.println(str.indexOf("yang"));
System.out.println("小写转大写"+str.toUpperCase());
System.out.println("大写转小写"+bigStr.toLowerCase());
}
}
JVM元空间
运行后:
汇编语言的实现