- 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
2 Answers
+ 8
myVar.next() not myVar.nex() a little typo there.
- 1
what should i do
can it give me two simultaneous input fields