File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Help me work with Arrays? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help me work with Arrays?" Watch "Help me work with Arrays?" New topic

Help me work with Arrays?

mike bones

Joined: Mar 24, 2007
Posts: 4
int val[][] = {{80,60,100,90,50},

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?

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Read this tutorial about accessing arrays :
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

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
I agree. Here's the link:
subject: Help me work with Arrays?
It's not a secret anymore!