Search:

Type: Posts; User: Json

Search: Search took 0.10 seconds.

  1. Replies
    6
    Views
    45,697

    Re: How to Use the Java switch statement

    The valueOf method is an inherited method for enums and will work without an override.

    // Json
  2. Replies
    6
    Views
    45,697

    Re: How to Use the Java switch statement

    Other than primitives you can also switch on enums :D



    public class SwitchCase {

    /**
    * JavaProgrammingForums.com
    * Spread the word ;)
    */
Results 1 to 2 of 2