/* This shows some simple uses of a for() loop. This first example passes an array reference to a method and then modifies the contents of the array. Note that after the method returns the new values are printed out. */ public class arraymodifier_v1 { public static void main(String args[]) { int[] intarray = {8, 12, -3, 5}; // Call the arraymod method // Note that the intarray reference is used as a parameter arraymod(intarray); // This for loop prints out all the values in the intarray array. // Note that the values have been modified by the arraymod method for(int i=0 ; i