I can't detect why it isn't working. I prefer to use the Scanner instead of BufferedReader, and I've done other tests like this, but this one simply doesn't work. The compiler says the following:
com/codegym/task/task03/task0320/Solution.java:15: error: cannot find symbol
Scan scan = new Scan(System.in);
^
symbol: class Scan
location: class com.codegym.task.task03.task0320.Solution
But it doesn't make sense to me since I imported the right package for the Scan. Please help.
package com.codegym.task.task03.task0320;
/*
The humble programmer
*/
import java.util.*;
public class Solution
{
public static void main(String[] args) throws Exception
{
Scan scan = new Scan(System.in);
String name = scan.nextLine();
System.out.println(name + " makes $120,000 a year. Ha-ha-ha!");
}
}