KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do I iterate over a Java array of variable length. I guess I would setup a while loop, but how would I detect that I have reached the end of the array. I guess I want something like this [just need to figure out how to represent myArray.notEndofArray()] index = 0; while(myArray.notEndofArray()){ system.out.println(myArray(index)); index++; }
Tags (comma-separated)
Save Edits
Cancel