I have a quick question which shouldn't be too hard to answer.
So in my main function I take a user input for which enum element to use.
So I have String type = scanner.next();
User input: grannysmith
I also have an enum called apples.
What I want is to do is create and use apples.grannysmith, but I do not know how to do this.
Do I do one of these:
apples.type; new apples.type();
Or something else similar??
Thanks for the help