// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class ArrayInit {
   private static void test(int[] a) {
      for(int i = 0; i < a.length; i++) {
         System.out.print(" " + a[i]);
      }
      System.out.println();
   }
   public static void main(String[] args) {
      int[] a = { 1, 2, 3 };
      test(a);
      test(new int[] { 4, 5, 6 });
   }
}
