The process revisits the uppercase figure of the individual char value. The java string to UpperCase() process returns the thread in the uppercase letter. In other words, it adapts all characters of the string into upper case letters. The toUpperCase() method works same as toUpperCase(Locale. getDefault()) method.
boolean toUpperCase(char ch)
Here is the detail of parameters −
public class Test { public static void main(String args[]) { System.out.println(Character.toUpperCase('c')); System.out.println(Character.toUpperCase('C')); } }
This will produce the following result:
C C
Here at Intellinuts, we have created a complete Java tutorial for Beginners to get started in Java.