public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int User = new scan.NextLine();
}
Почему при таком построение кода, в строке
int User = new scan.NextLine();
слово scan подчеркивается красным, как ошибка?