CS 1073 Introductory Programming
for Scientific Applications
Practice with Arrays


Working with simple arrays: This first Java program creates some simple arrays and works with them.

Here are results of a run:


Arrays and functions: This Java program does the previous stuff over again using functions and passing arrays to the functions as parameters.

Here are results of a run. Notice that these results are exactly the same as the previous ones.