my problem is the following:
The program will run until the user press "Enter" but indicated nothing.
I thought something like this:
but because the scanner does not accept empty tokens it does not work so!Code:Scanner sc = new Scanner (System.in); String = into sc.next (); if (in == null) System.exit (0);
(enter enter-pressure leads to a new line in the terminal window, but in the program hands "no".)
If anyone has any solution to my problem, I would be very grateful!
Bookmarks