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?
kundan asked 2 weeks 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
Amit answered 2 weeks ago
Your Answer

3 + 9 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com