Skip to content
  • All Tutorials
  • Java Basics
  • Java Core
  • Java EE
  • Spring
  • Android
  • Misc Tutorials
  • Raspberry Pi

Java Tutorial Network

Java Tutorials for Beginners and Professionals

enum

Java Enum Example

August 14, 2019October 28, 2019 ym_coding
java-featured-image

Enum type is a special data type which holds different constants such as WHITE, BLACK, RED. The convention is that they should be named with upper case because, again, they are constants. In java, you define enum type by using the enum keyword. public enum Macronutrients { FATS, CARBOHYDRATES, PROTEIN } If you know all the…

Continue reading →
Java Core enum, java Leave a comment
GET INVOLVED
Follow us on:

Categories

  • Android (21)
  • Articles (39)
  • Get Involved (5)
  • Java Basics (18)
  • Java Core (85)
  • Java EE (18)
  • Misc Tutorials (14)
  • Raspberry Pi (9)
  • Spring (32)
  • Uncategorized (8)

Sponsors



become a sponsor

Java Tutorial Network
Copyright © 2022 JavaTutorial.net, All rights reserved. | Terms of Use | Privacy Policy | Contact Us | Submit Guest Post
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more