Simple JAVA programm, emulating bank terminal