FileDocCategorySizeDatePackage
Arrays.javaAPI DocExample2721Mon Apr 06 18:10:26 BST 1998None

Arrays

public class Arrays extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    int[] a1 = { 1, 2, 3, 4, 5 };
    int[] a2;
    a2 = a1;
    for(int i = 0; i < a2.length; i++)
      a2[i]++;
    for(int i = 0; i < a1.length; i++)
      prt("a1[" + i + "] = " + a1[i]);
  
static voidprt(java.lang.String s)

    System.out.println(s);