This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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 ]
Consider Paul's rocket mass heater.
subject: arrays