Java program to change characters of a string to lowercase and uppercase

Here is a Java program to convert characters of a given string to lower case and upper case:

class Test {

public static void main(String args[ ])


String s = “More Process”;

System.out.println(“Text: ” + s);

String upper = s.toUpperCase();

String lower = s.toLowerCase();

System.out.println(“Upper case: ” + upper);

System.out.println(“Lower case: ” + lower);




Text: More Process

Upper case: MORE PROCESS

Lower case: more process

Leave a Reply