?? construction.java~50~
字號:
package Construction;public class Construction { public static void main(String a[]){ char chars1[]={'a','b','c'}; char chars2[]={'e','f','g','h','j'}; byte ascii[]={120,121,122}; String s1=new String(chars1); String s2=new String(chars2,0,5); String s3=new String(ascii,0,3); String s4="helloworld !"; String s5="w"; System.out.println("String s1="+s1); System.out.println("String s2="+s2); System.out.println("String s3="+s3); System.out.println("String s4="+" \" "+s4+" \" "); System.out.println("s4.length="+s4.length()); System.out.println(s4.charAt(0)); System.out.println("s4.indexOf(100)="+s4.indexOf(100)); System.out.println("s4.indexOf(world,3)="+s4.indexOf("world",3)); System.out.println("s4.lastindexOf(world)="+s4.lastIndexOf("world")); System.out.println(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -