java·笔记
throw new ArithmetucException(" “);
list.add(1);
list.remove(1);
list.get(0); 查找位置
for(int i=0;i<list.size();++i){
System.out.println(list.get(i));
}
String str =new String (“hello”);
System.out.pringln(“长度”+str.length());
System.out.pringln(“位置的字符”+str.charAt());
byte arr[]=str.getBytes();
分割 String sarr[]=str.split(” ,");
截取System.out.println(str.substring(1,3));
字符转数组 char ch[ ]=str.toCharArray();
08-19