I have a problem with this method:
public void runTransaction(){
//Some calculations...
wait();
//Other calculations...
}
private static void wait(){
try {
System.out.println("Press <enter> to continue");
System.in.read();
}
catch (java.io.IOException ex) {
System.out.println("Input error...");
}
}
but the programm does not continue after pressing Enter. I'm using Ubuntu 12.04.
EDIT: the programm does print the message "Press to continue" but does not continue after that, it just waits for input.