Ron McLeod wrote:I'm not sure how it is not working for you.
When I create a class similar to yours, and hover the cursor over the Date type in the constructor, I am presented with a list of fixes, which includes adding an import for various types.
When I (left) click the java.util.Date option, an import for that type gets added to the class file.
Is this not the same for you?
I am using Eclipse IDE for Enterprise Java and Web Developers version 2023-12 (4.30.0)
I have the same version as you.
And it offers you and option plus 12 and to me 11.
I wonder if it has something to do with the JDK?
They recommended that I touch something in preferences and now 14 solution options appear
My main question is why there is so much difference between possible solutions to that error, in this case 13.
It makes me think that my jdk, or something is incomplete or poorly configured (because I have had many problems with Eclipse for a long time)
It is not bad practice to create a class with the name Date?thank you