Hello i am trying to get some java to run however i keep getting an error message here's the message: unreported exception IOException; must be caught or declared to be thrown myName = in.readLine();
import java.io.*; public class While{ public static void main(String []args){ int num = 0; while (num != 999){ System.out.println("Enter a number:"); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); num = Integer.parseInt(in.readLine()); System.out.println("You typed: " + num); } System.out.println("999 entered, so the loop has ended."); } } Just going to be straight out, i have not used java and this is my first time ever using it, i was asked by my boss if i can take a look at it so far i've been able to do everything but i cannot fix this error message, any and all help welcome.