import java.io.*;
class simple_print_string
{
public static void main(String args[])
{
String str;
try
{
DataInputStream cin=new DataInputStream(System.in);
System.out.println("Enter any String ");
str=cin.readLine();
System.out.println("Your entered string is = "+str);
}
catch(Exception e)
{
System.out.println("wrong data");
}
}
}
class simple_print_string
{
public static void main(String args[])
{
String str;
try
{
DataInputStream cin=new DataInputStream(System.in);
System.out.println("Enter any String ");
str=cin.readLine();
System.out.println("Your entered string is = "+str);
}
catch(Exception e)
{
System.out.println("wrong data");
}
}
}
No comments:
Post a Comment