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
India Languages,
7 months ago
Social Sciences,
7 months ago
Chemistry,
7 months ago
Hindi,
1 year ago