I'm in an intro to computer programming course and just for the purposes of my test drivers and personal implementation, I would like to know if it is possible to force the program to wait for the enter key before proceeding without allowing the user to type in anything. I don't really have any experience with the buffered reader, we were provided with an IO class that handles inputs. Currently I solve it with a String input that doesnt go anywhere, but this looks unprofessional when you are able to type characters other than enter. (In professional programs that have "press enter to continue" generally nothing is shown when other keys are pressed. ) I'm willing to learn the whole buffered reader thing, but I currently don't know enough about it to even know if its the right tool for this or whether there is something else that performs this way.
I'm also interested in the "press any key to continue" operation if anyone knows how to implement this.
I'm also interested in the "press any key to continue" operation if anyone knows how to implement this.
Comment