- 1

what am i doing wrong

import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nex()); Scanner aVar = new Scanner(System.in); System.out.println(aVar.next()); } } or is it not posible

8th Nov 2017, 5:19 AM
Luqman Mussa
Luqman Mussa - avatar
2 Answers
+ 8
myVar.next() not myVar.nex() a little typo there.
8th Nov 2017, 5:24 AM
qwerty
qwerty - avatar
- 1
what should i do can it give me two simultaneous input fields
8th Nov 2017, 5:35 AM
Luqman Mussa
Luqman Mussa - avatar