+ 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.
8 Respuestas
+ 1
it is
S.nextInt();
0
Still not working
0
Ok
0
It says any symbol is missing at line nt" i=S.NextInt();"
0
Don't know what is problem I had made many programs using input in eclipse.
0
Thank you.
0
Nope, I had made this program public type" need work" in search box.
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);
}
}