You need to import the HashMap into the class import java.util.HashMap; public class Demo{ public static void main(String args[]){ ... ... <看更多>
Search
Search
You need to import the HashMap into the class import java.util.HashMap; public class Demo{ public static void main(String args[]){ ... ... <看更多>
Common fixes for cannot find symbol in Java. This typically means a misspelling, variable or method that does not exist, or variable that is ... ... <看更多>
... private Map testMap = new HashMap (); but not the HashMap import. package... ... cannot find symbol [ERROR] symbol: class HashMap ... ... <看更多>