how do I get two lines from system.in?
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please enter your name:");
name = in.readLine();
System.out.println("Please enter your balance:");
balance = in.readLine();
after "please enter your name", the system should be blocked until I enter the name and hit the return button. the "please enter your balance" shows up on the screen so I can enter the balance.
How do I do this?