Answer:
You should import java.util.*; at the top, and capitalize the Scanner class:
Scanner in = new Scanner( System.in );
A detail is that the scanner needs to be closed once you're done with it:
in.close();
5.6m questions
7.3m answers