The type Map is not generic; it cannot be parameterized with arguments <String, Integer>
This Error Occurs Due To Your Project File Name Check Your File And Change That.
And Import
import java.util.Map;
It Will Work For Me