0

How to get the answer I want step by step

8th Nov 2016, 5:45 PM
Achini Amaraweera
3 Answers
+ 1
Scanner in = new Scanner(System.in);//import Scanner; String answer = ""; boolean goOn = true; while(goOn){ System.out.println("yes or no"); answer = in.nextLine(); if(answer.equals("yes")){...}else{...} in.close(); goOn = false; } System.out.println("Your answer : "+ answer);
8th Nov 2016, 7:17 PM
Wanderlei Borges
Wanderlei Borges - avatar
0
which answer?? r u asking about the out put of a program??
8th Nov 2016, 7:17 PM
DEBASISH DAS MOHANTY
DEBASISH DAS MOHANTY - avatar
0
No I asking about How to got answer 3
8th Nov 2016, 7:41 PM
Achini Amaraweera