This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "arrays" Watch "arrays" New topic
Author

arrays

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++)
{
for(intj=0;j<10;j++)
{

if(condn)
{
dispalying some values.
}
;;;;;;
}
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 688

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



Kaydell
[ February 28, 2008: Message edited by: Kaydell Leavitt ]
 
jQuery in Action, 2nd edition
 
subject: arrays
 
Similar Threads
Nested Array Initialization
How to create this String array
Array initialization
Database to multi-dimensional array problem
NullPointerException and array-things