the import java.util cannot be resolved
导入JRE System Library.
- 右键项目
- Build Path
- Configure Build Path... (点击后打开 Properties for ProjectName 对话框, ProjectName是你的工程名称)
- 点击左侧Java Build Path
- 选择Libraries选项卡
- 点击右侧Add Library按钮
- 在弹出的Add Library对话框内选择JRE System Library
- Next -> Finish