+ 1

Program problem pls tell me where is error. Program is in description below.

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner S = new Scanner (System.in); System.out.print("enter"); int i=S.NextInt(); System.out.print (i); } } I had made this program public type" need work" in search box.

5th Nov 2016, 3:55 PM
nayan
nayan - avatar
8 Respuestas
+ 1
it is S.nextInt();
5th Nov 2016, 4:15 PM
Aditya kumar pandey
Aditya kumar pandey - avatar
0
Still not working
5th Nov 2016, 4:02 PM
nayan
nayan - avatar
0
Ok
5th Nov 2016, 4:05 PM
nayan
nayan - avatar
0
It says any symbol is missing at line nt" i=S.NextInt();"
5th Nov 2016, 4:06 PM
nayan
nayan - avatar
0
Don't know what is problem I had made many programs using input in eclipse.
5th Nov 2016, 4:07 PM
nayan
nayan - avatar
0
Thank you.
5th Nov 2016, 4:10 PM
nayan
nayan - avatar
0
Nope, I had made this program public type" need work" in search box.
5th Nov 2016, 4:21 PM
nayan
nayan - avatar
0
import java.util.Scanner; public class Program{ public static void main(String[] args) { Scanner S = new Scanner (System.in); System.out.print("enter"); int i= S.nextInt(); System.out.print (i); } }
5th Nov 2016, 7:09 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar