Page 3 of 3 FirstFirst 123
Results 41 to 48 of 48

Thread: Need help

  1. #41
    Join Date
    Apr 2011
    Posts
    30
    Rep Power
    0

  2. #42
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Please do not bum a question after just 4 minutes, not unless you want to piss a lot of folk off. We are all volunteers, not your paid help, and in that light you should not to bump for 12 hours or more after asking a question.

  3. #43
    Join Date
    Apr 2011
    Posts
    30
    Rep Power
    0

    Default

    Sorry :/. I'll just wait I guess
    Quote Originally Posted by Fubarable View Post
    Please do not bum a question after just 4 minutes, not unless you want to piss a lot of folk off. We are all volunteers, not your paid help, and in that light you should not to bump for 12 hours or more after asking a question.

  4. #44
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by mikhail.abraham View Post
    Sorry :/. I'll just wait I guess
    Or continue to try solving it on your own.

  5. #45
    Join Date
    Apr 2011
    Posts
    30
    Rep Power
    0

    Default

    I tried everything I learned and I've been trying for hours I'm just not being able to figure it out

  6. #46
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by mikhail.abraham View Post
    I tried everything I learned and I've been trying for hours I'm just not being able to figure it out
    Sunde's given you some great advice. You would do well to re-read what he has posted, continue to study the tutorials and keep trying.

  7. #47
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Sorry about the long time between posts, I started working on my project and got lost lol.

    You are very close, and it is a very tiny mistake. It's not that you are stupid, probably just inexperience that is the mistake.

    it has something to do with scores[i]. Do you ever assign it a value in the loop? Do you think you should?

    This is what I have been hinting a lot, however; I try to be somewhat vague, forcing you to think.

  8. #48
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default

    I wonder why you keep writing this:

    Java Code:
    for (int i = 0; i <[COLOR="Red"]=[/COLOR] scores.length; i++) {

    Surely you don't mean to loop through (scores.length+1) times?

    Look at this array:

    String[] strArray = new String[3];

    if there are 3 Strings store in the array:
    strArray[0] = "string one";
    strArray[1] = "string two";
    strArray[2] = "string three";

    1) The length of the array is 3
    2) The last index of the array is 2
    3) The first index is 0

    So what would happen if you wanted to loop through the array, starting at index 0, and finishing at the index of the arrays length ?

    i.e. does the following index exist?
    strArray[length]

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •