Search:

Type: Posts; User: Json

Search: Search took 0.08 seconds.

  1. Replies
    6
    Views
    1,959

    Re: Help for java homework

    Its probably because you're trying to pass the value of getTypeAsString into the getType method in your toString method.

    // Json
  2. Replies
    6
    Views
    1,959

    Re: Help for java homework

    Or even better, instead of having static ints represent the type of wine, use an enum :)



    public enum WineType {
    RED,
    WHITE,
    PINK;
    }
Results 1 to 2 of 2