| Author |
Help me work with Arrays?
|
mike bones
Greenhorn
Joined: Mar 24, 2007
Posts: 4
|
|
int val[][] = {{80,60,100,90,50}, {69,76,30,100,65}, {75,60,86,50,97}}; Hello. I am trying to figure a method on how to discover the amount of numbers below 50, and the amount of numbers above 50 in this array. I am unfamilar with arrays and how to work with them in Java. I was curious if anyone could assist? Thanks
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14685
|
|
Read this tutorial about accessing arrays : http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html Try to loop through the array using what you've learned from this tutorial, and come back if you're still having troubles
|
[My Blog]
All roads lead to JavaRanch
|
 |
marc weber
Sheriff
Joined: Aug 31, 2004
Posts: 11343
|
|
Originally posted by mike bones: ...I am unfamilar with arrays and how to work with them in Java...
Also see this thread.
|
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
|
 |
 |
|
|
subject: Help me work with Arrays?
|
|
|