Try to search your question here, if you can't find : Ask Any Question Now ?

In an enum class, how can values be type java.util.date?

HomeCategory: stackoverflowIn an enum class, how can values be type java.util.date?
Avatarkundan asked 4 months ago

In an enum class, how can values be of the type java.util.date?
The enum still has to have a name.

I have tried:

ENUM_OPTION1(Date(10000000000L))

But I got an error saying that
“Symbol Date(long) wasn’t recognized”, even though I imported the class at the top of my file.

1 Answers
Best Answer
AvatarAmit answered 4 months ago
Your Answer

9 + 6 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com