i just learned how to get input from keyboard...'
import java.io.*;
class Fish{
public static void main(String[] args)
{
BufferedReader Keey = new BufferedReader(new InputStreamReader(System.in));
System.out.println(Keey.readLine());
}
}
But whenver i compile it..its shows me the follwing exception..
C:\Program Files\Java\jdk1.6.0_22\bin>javac Fish.java
Fish.java:7: unreported exception java.io.IOException; must be caught or decla
red to be thrown
System.out.println(Keey.readLine());
^
1 error