here is my code
package test.program;
/**
*
* @author Justin
*/
public class TestProgram
{
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
char ch;
ch = (char)System.in.read();
if(ch<'K')
System.out.println("This stuff is less than K " + ch);
else
System.out.println("Thats that stuff I don't like " + ch);
}
}
am I forgetting to import something? It gives me an error saying
unreported exception IOException, must be caught or declared to be thrown