toUpperCase (), toLowerCase () to convert the English string to all uppercase or lowercase

seday01 Package;
/ **
* String the toUpperCase ()
* the toLowerCase String ()
* convert the English string to all uppercase or lowercase
* @author xingsir
* /
public class ToUpperCaseDemo {

static void main public (String [] args) {
String STR = "the Hello the Java"; // String
String upper = str.toUpperCase (); // to all uppercase
System.out.println (upper); // Print
String lower = str.toLowerCase (); // all lowercase
System.out.println (lower); // print
}

}

Guess you like

Origin www.cnblogs.com/xingsir/p/11957733.html