Convert Characters to Upper Case in Java
Description
The following code shows how to convert Characters to Upper Case.
Example
//from ww w.j av a2s. co m
public class Main {
public static void main(String[] args) {
String str = "this is a test";
str = str.toUpperCase();
System.out.println(str);
}
}
The code above generates the following result.
Home »
Java Tutorial »
Java Data Type »
Java Tutorial »
Java Data Type »