public class StringTest{
public static void main(String[] args){
char c1 = "abadajdkh".charAt(2);
System.out.println(c1);
System.out.println("HelloWorld.java".endsWith("a"));
System.out.println("abc".equalsIgnoreCase("Abc"));
byte[] bytes = "abc".getBytes();
for(int i=0;i<bytes.length;i++){
System.out.println(bytes[i]);
}
System.out.println("0123456wangjjjj".indexOf("wang"));
System.out.println("wbbwbbwbbwbb".indexOf("w",1));
System.out.println("abc".length());
System.out.println("wangpeican".replaceAll("wang",""));
String myTime = "2008,08,08";
String[] ymd = myTime.split(",");
for(int i=0;i<ymd.length;i++){
System.out.println(ymd[i]);
}
System.out.println("aadhjahjdhajd".startsWith("a"));
System.out.println("?shjd?ddd/".substring(1,7));
char[] c4 = "wangpeican".toCharArray();
for(int i=0;i<c4.length;i++){
System.out.println(c4[i]);
}
System.out.println("abadha".toUpperCase());
System.out.println("AHD".toLowerCase());
System.out.println(" a sdhd hh ".trim());
Object o = null;
System.out.println(o);
System.out.println(String.valueOf(o));
}
}