Yes, that is correct, although I think you can use a static import of the enum class to reference the enum values without the class name in front (not 100% sure though - try it out :-) ).
Hi Akshay, I am not actually sure if you can use Generics with Enum as I have never actually needed it. But my guess is, that you can! It would seem logical!
I believe the EnumMap may use a more optimized storage and/or hashing algorithm internally, but I am not 100% sure. Off the top of my head I just remember that it should be more efficient.
Maybe someone has an example of code, where enum's are used. I made a small shopping simulation program for learning purposes, and one of the teachers in our academy said, try to use enums for kg, mg, g (kilograms, grams and so on) when printing all products menu.
I am not sure what you mean. An Enum can only contain the same "value" (constant) once. That's the whole point of an Enum - that the constants listed are unique.
I don't have video versions of all the Java features at this point, but I have lots of textual tutorials. My Java tutorial introduction lists all the major new features in Java 9, 10, 11 and 12, with links to textual tutorials of their descriptions. Here it is: tutorials.jenkov.com/java/index.html
OMG bro, get darcula mode up in that IntelliJ, its 10pm (I'm in the equator, literally in Ecuador so it's late) and my eyes hurt watching this, with screen at minimum bright!
I know im asking randomly but does any of you know of a trick to get back into an Instagram account..? I somehow forgot the password. I appreciate any tricks you can give me
@Oliver Trent Thanks for your reply. I found the site thru google and im waiting for the hacking stuff atm. I see it takes a while so I will get back to you later when my account password hopefully is recovered.