Search:

Type: Posts; User: RvDelft

Search: Search took 0.09 seconds.

  1. Re: How do I compare a variable's value with an enum's value?

    I think this:

    What you are showing here it should be something like:


    if(
    customer.age //it is a variable not a method so no '()'
    >= Age.valueOf("Legal")) // it is valueOf(String)
  2. Replies
    4
    Views
    735

    Re: Printing Array Strings in a Method

    Alright let me thy this:

    In your main class you are making a reference:
    But you don't use it.

    Then you call the method but you on the 'm' reference. In this method you call the array objects...
Results 1 to 2 of 2