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)
PayPal Gateway not configured
PayPal Gateway not configured