"error: cannot find symbol HashMap"
you need to import the HashMap to avoid the compile error
import java.util.HashMap;
You need to import the HashMap
into the class
import java.util.HashMap;
public class Demo{
public static void main(String args[]){
System.out.println("============Starting Hashmap============");
//hashmap portion
HashMap<String, Integer> myMap = new HashMap<String, Integer>();
System.out.println("============Ending Hashmap============");
}
}