?? checkstring.java
字號(hào):
class CheckString {
public static void main(String[] arguments) {
String str = "Nobody ever went broke by buying IBM";
System.out.println("The string is: " + str);
System.out.println("Length of this string: "
+ str.length());
System.out.println("The character at position 5: "
+ str.charAt(5));
System.out.println("The substring from 26 to 32: "
+ str.substring(26, 32));
System.out.println("The index of the character v: "
+ str.indexOf('v'));
System.out.println("The index of the beginning of the "
+ "substring \"IBM\": " + str.indexOf("IBM"));
System.out.println("The string in upper case: "
+ str.toUpperCase());
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -