So I did the following (Please excuse the mess):
I printed strings in this order:
StudentListID that’s coming from the first for loop => Last Name of student (after getting the json result) => the Last Name of the student coming from the final json result => finally the array length after the for loop is completed to see how many elements it had.
I got the results in this order…
All the studentIDs : 1,2,4,6 then the array size “0” then last I get the last names both of them being the final students last name (the first print string was supposed to print each of the students last names as the loop went on)
I do not understand how values that are supposed to print within the forloop come after and how nothing gets added to my array
