This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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

Win a copy of REST with Spring (video course) this week in the Spring 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 ]
I agree. Here's the link:
subject: arrays
It's not a secret anymore!