Pages

Convert uppercase to lowercase in java

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

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


public class ConvertUppercaseToLowercase
{
public static void main(String[]args)
{
String a="HELLO WORLD";

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


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