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++;} } }
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);