0

What it dosen't work for?

import java.util.Scanner; class why{ public static void main(String[]args){ Scanner var = new Scanner (System.in); int x = var.nextInt(); while(x<10){ System.out.println(x); x++;} } }

24th Dec 2016, 5:12 AM
Hamed
1 Answer
+ 3
Just because the space character in between Scanner and the open parenthesis, at right part of the 4th line ^^ Replace this line with: Scanner var = new Scanner(System.in);
24th Dec 2016, 1:53 PM
visph
visph - avatar