import java.util.Scanner;
public class Arr
{
public static void main(String Args[])
{
try
{
String choice;
System.out.println("Enter the name");
Scanner s1= new Scanner(System.in);
choice = s1.nextLine();
if(choice.isEmpty())
{
System.out.println("String is Empty");
}
else
{
System.out.println("you have entered correct data");
}
}
catch(Exception e)
{
}
}
}
Comments
Post a Comment