This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "arrays" Watch "arrays" New topic


phani kon
Ranch Hand

Joined: Apr 06, 2005
Posts: 251
I have a 2 dimensional arrays. I want to count the no records in java not from database and also not the length of the array.I display some values using multidimensional array, but I want to count the total no of records . How would I do that?

Can anyone help me in this case?

for(inti=0;i<10; i++)

dispalying some values.
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

I'm not sure that I understand your question, but here is the solution to what I think that you mean.

[ February 28, 2008: Message edited by: Kaydell Leavitt ]
Have you checked out Aspose?
subject: arrays
It's not a secret anymore!