Search:

Type: Posts; User: Tjstretch

Search: Search took 0.10 seconds.

  1. Replies
    11
    Views
    1,453

    Re: Seaching an array confusion

    Ok, so I think that you don't even need the catch statement that you have.
    The g.getTitle() part, you may not have that method, but just rename it to whatever your accessor / variable name is, I...
  2. Replies
    11
    Views
    1,453

    Re: Seaching an array confusion

    Oh by the way, the exception MAY be an IndexOutOfBoundsException, but not sure why you would get that unless you don't check parameters
  3. Replies
    11
    Views
    1,453

    Re: Seaching an array confusion

    Ok, I don't understand, one quarter of your game is getting priced differently then the rest?
    It seems to be working, you don't have to explain it to me, I'm just curious. Also, a few...
  4. Replies
    11
    Views
    1,453

    Re: Seaching an array confusion

    Also, just looked at what you have. It's bad style to have a method that calls for user input
    Your code doesn't make any sense to me, so I'm assuming you want

    /*Main method or the equivalent*/...
  5. Replies
    11
    Views
    1,453

    Re: Seaching an array confusion

    UHF just lost what I was gking to say.

    Here's the gist:
    I recommend:
    Use a for loop with a basic counter, continuing until you have hit the end o the games array, checking the title of the...
  6. Replies
    11
    Views
    1,453

    Re: Seaching an array confusion

    Highligt your code with:


    *Insert code here*
Results 1 to 6 of 6