I've been doing Java for business for the first time in a few years I am studying at home. I made a trivial mistake and got stuck, so make a note of the content and cause.
This is all I tried to do.
public class HashMap {
public static void main(String[] args) {
//Map declaration
HashMap<String,String> hashmap = new HashMap<>();
}
}
It seems that the class name should not be HashMap, and it was fixed by changing the class name. It's a reserved word.