1. Member
Join Date
Apr 2011
Posts
30
Rep Power
0

2. 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. Member
Join Date
Apr 2011
Posts
30
Rep Power
0
Sorry :/. I'll just wait I guess
Originally Posted by Fubarable
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. Originally Posted by mikhail.abraham
Sorry :/. I'll just wait I guess
Or continue to try solving it on your own.

5. Member
Join Date
Apr 2011
Posts
30
Rep Power
0
I tried everything I learned and I've been trying for hours I'm just not being able to figure it out

6. Originally Posted by mikhail.abraham
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. 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. 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 First 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
•