Wednesday, 11 September 2013

getting input in java throws exception

getting input in java throws exception

DataInput in = new DataInputStream(System.in);
System.out.println("What is your name");
String name = in.readLine();
The error says "Unhandled IO Exception". What's wrong with this code ?

No comments:

Post a Comment