Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## utilities
Class ChangeArrayLength

    java.lang.Object
      |
      +--utilities.ChangeArrayLength

public class ChangeArrayLength
extends java.lang.Object

Constructor Summary
`ChangeArrayLength()`

Method Summary
`static java.lang.Object[]` | `changeLength1D(java.lang.Object[] a, int newLength)`
`static java.lang.Object[]` | `changeLength1D(java.lang.Object[] a, int n, int newLength)` Change the length of the 1D array a.
`static void` | `main(java.lang.String[] args)` test program

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ChangeArrayLength

    public ChangeArrayLength()

Method Detail

### changeLength1D

    public static java.lang.Object[] changeLength1D(java.lang.Object[] a,
                                                    int n,
                                                    int newLength)

  Change the length of the 1D array a.
  Parameters:
    `n` - number of elements in a
    `newLength` - new length of array
  Returns:
    array of length newLength with a[0:n-1] copied into it

### changeLength1D

    public static java.lang.Object[] changeLength1D(java.lang.Object[] a,
                                                    int newLength)

### main

    public static void main(java.lang.String[] args)

  test program

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD