Help with Scanners (Java) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help with Scanners (Java)

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner myVar = new Scanner(System.in);{ int Number = (System.out.println (myVar.nextint())); System.out.println(Number);} } } I want the int "Number" = My Input, then have that as my output. Essentially I want what I Input to be my Output. Thanks in Advance

27th Jul 2020, 10:01 AM
Unoriginal
1 Answer
+ 3
Thanks codemonkey, that was fast
27th Jul 2020, 10:12 AM
Unoriginal