Monday, December 6, 2021

String Upper Case in Java

 A program in Java to convert string into upper case format using the toUpperCase() function in Java programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.




Program Listing


class  Upper_Case
{
public static void main( String args[ ] )
{
 String str_one = "bacolod city negros occidental";
 
 String str_two = str_one.toUpperCase();

 
 System.out.println("\n");
 System.out.println("\tString Upper Case in Java");
 System.out.println("\n");
 System.out.println( "\tThe Original  String : " + str_one );
 System.out.println();
 System.out.println( "\tThe UpperCase String  : " + str_two );
 System.out.println();
 System.out.println("\tEnd of Program");
System.out.println();
}
}

No comments:

Post a Comment