hi there i'm trying to iterate through a for loop but getting a bit stuck
MyArray[] myarray = getArray(a, b, c, d)
Returns an array. when i look at the array in my java debug, i can see the id and and name. how do i iterate
throught the loop setting the id and name values to variable?
When i look at myarray in a debugger i have this
myarray = MyArray[3]
expand the first one
id = "123"
name="some name"
etc
for (int i=0; i < myarray .length; i++) {
System.out.println("length: " + myarray [i]); // i know there's data
String id = /// how do i get the id ?
String name // how do i get the name?
}
thanks for any help