I have a console application that after performing its tasks, must give feedback to the user, such as \"operation completed\" or \"operation failed\" and the detailed error.
public static void main(String args[]) { Scanner s = new Scanner(System.in); System.out.println("Press enter to continue....."); s.nextLine(); }
This nextline is a pretty good option as it will help us run next line whenever the enter key is pressed.
nextline