• Post Reply Bookmark Topic Watch Topic
  • New Topic

Next null in arrays?  RSS feed

 
Sam Bluesman
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyway to find the index of the next null value in an array?
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean a way other than a loop that searches through it?
 
Sam Bluesman
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you cold say that yes.
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use an ArrayList instead of an array and use indexOf
 
memati bas
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

This method can be helpful for you.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!