Scanner in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Scanner in java

How should i use number (int) in java. Please at least one example

1st Apr 2020, 11:40 AM
Fakea Vangchhia
Fakea Vangchhia - avatar
2 Answers
+ 3
Hi Fakea Vangchhia it looks like you have completed the whole course and are yet struggling with topics like scanner. Try revising it once again.
1st Apr 2020, 11:46 AM
Avinesh - avatar
+ 2
Scanner sc = new Scanner(; int n = sc.nextInt();
1st Apr 2020, 5:55 PM
Marina Vasilyova
Marina Vasilyova - avatar