●英字の文字列を大文字、小文字に変換
toUpperCase()
toLowerCase()
toUpperCase()
toLowerCase()
-----------------------------------------------
public class toUpperCaseDemo {
public static void main(String args[]){
String s1 = "the total cost is \\500";
String s2 = s1.toUpperCase();
//
System.out.println(s1.toUpperCase());
System.out.println(s2.toLowerCase());
}
}
-----------------------------------------------