Write a program to.compute to input string from a keyboard and display the appropriate message by the strings are equal or not
Answers
Answered by
3
public class abc
{
public static void main ( char ch )
{
if ( ch>= 'A' && ch<= 'Z' || ch>= 'a' && ch<= 'z' )
{
System.out.println ( " A String " )
}
else
{
System.out.println ( " Not a String " )
}
}
}
{
public static void main ( char ch )
{
if ( ch>= 'A' && ch<= 'Z' || ch>= 'a' && ch<= 'z' )
{
System.out.println ( " A String " )
}
else
{
System.out.println ( " Not a String " )
}
}
}
Similar questions