title: Java: Enum vs. Int
body: <p>When using flags in Java, I have seen two main approaches. One uses int values and a line of if-else statements. The other is to use enums and case-switch statements.</p>
  
  <p>I was wondering if there was a difference in terms of memory usage and speed between using enums vs ints for flags?</p>