cannot find symbol hashmapset;
时间: 2023-07-22 17:31:02 浏览: 148
The error message "cannot find symbol hashmapset" usually means that the Java compiler cannot find the class or interface "HashSet" from the java.util package, which is used to implement a hash table data structure.
To fix this error, you can try importing the HashSet class at the beginning of your Java program using the following statement:
```java
import java.util.HashSet;
```
If the error persists, you may need to check if you have the correct version of Java installed and if your classpath is set up correctly.
阅读全文