Course Solutions Uncategorized (Solved) : Method Produces Java Console Prompt Getting User Press Enter Key Program Continues Don T F Q34204350 . . . .

(Solved) : Method Produces Java Console Prompt Getting User Press Enter Key Program Continues Don T F Q34204350 . . . .

 

This method produces a Java console prompt, getting a user to press the ENTER key before the program continues. I don’t fully understand what is going on in the ‘try’ and ‘catch’ blocks of code. Could this please be explained to me by using comments, line by line? Thanks. public static void promptEnterKey(){ System.out.println(“Press “ENTER” to continue…”); try { int read = System.in.read(new byte[2]); } catch (IOException e)

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post