Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arrays

 
phani kon
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic