Embt
asked on
system.in question
how do I get two lines from system.in?
e.g.
BufferedReader in = new BufferedReader(new InputStreamReader(System.i n));
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?
e.g.
BufferedReader in = new BufferedReader(new InputStreamReader(System.i
System.out.println("Please
name = in.readLine();
System.out.println("Please
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.