String.charAt()
String tempStr = "abcd";
System.out.println(tempStr.charAt(0)); //char a
String.matches()
boolean flag= "2".matches("[1-9]");
String tempStr = "abcd";
System.out.println(tempStr.charAt(0)); //char a
boolean flag= "2".matches("[1-9]");