Command line Check_Of_Two_Entered_String

class Cmd_Check_Of_Two_Entered_String
{
public static void main(String args[])
{
if(args.length==2)
{
String s1=args[0];
String s2=args[1];
if(s1.equals(s2))
{
System.out.println("both string are equal");
}
else
{
System.out.println("both string unequal");
}
}
else
{
System.out.println("wrong no of input");
}
}
}

No comments:

Post a Comment