Arrays in methods

Passing arrays in methods Outputs: 7 9 11 13 We pass our array james to the changearray method which adds 5 to each element.

Continue Reading Arrays in methods

Simple arrays

Outputs: 3 Note: new use 'new' above because an array is actually an object Outputs: 4 (the index of arrays starts at zero) Creating an array table Outputs: Index Value…

Continue Reading Simple arrays