File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 14687
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help me work with Arrays?