Accept two string values from user and find out their length,convert them into upper case and lower case and check whether they are equal

04/07/2013 11:46
import java.io.*;
public class acceptingvalues
{
public static void main(String args[])throws IOException
{
InputStreamReader ir=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(ir);
System.out.println("enter two strings");
String a=br.readLine();
String b=br.readLine();
System.out.println(a.length());
System.out.println(b.length());
System.out.println(a.toUpperCase());
System.out.println(b.toLowerCase());
System.out.println(a.equals(b));
System.out.println(b.equalsIgnoreCase(a));
}
}