GoConqr has a new look! Let us know what you think.

Mind map

Enum

Tate Johnson Computer Science English

Map content

Enum

  1. user defined types where all possible values are explicitly listed.

  2. How to write: static enum ______ {Value, Value 2} <--- no equals sign

    • How to call: nameofenum.Value ex: Meal.LUNCH
  3. Values in an enum are typically capitalized ex: LUNCH

  4. Ops

    • .name(): returns a string of the value ex: Meal firstOne = Meal.LUNCH; System.out.println(firstOne.name()) returns LUNCH in a string.

Information

Description
Computer Science Mind Map on Enum, created by Tate Johnson on 26/04/2021.
Created by
Tate Johnson
Views
0
Tags
enum
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?