Pages

Convert lowercase to uppercase in java

Source code below will convert lowercase (hello world) to uppercase (HELLO WORLD)

*****************************************************
COMPLETE SOURCE CODE FOR : ConvertLowerCaseToUpperCase.java
*****************************************************


public class ConvertLowerCaseToUpperCase
{
public static void main(String[]args)
{
String a="hello world";

//CONVERT hello world TO HELLO WORLD
String b=a.toUpperCase();
System.out.println(b);
}
}


*****************************************************
JUST COMPILE AND EXECUTE IT
*****************************************************
Related Posts Plugin for WordPress, Blogger...