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 ChangeArraySize

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

public class ChangeArraySize
extends java.lang.Object

Constructor Summary
`ChangeArraySize()`

Method Summary
`static java.lang.Object[]` | `changeSize1D(java.lang.Object[] a, int newSize)`
`static java.lang.Object[]` | `changeSize1D(java.lang.Object[] a, int n, int newSize)` Change the size 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

### ChangeArraySize

    public ChangeArraySize()

Method Detail

### changeSize1D

    public static java.lang.Object[] changeSize1D(java.lang.Object[] a,
                                                  int n,
                                                  int newSize)

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

### changeSize1D

    public static java.lang.Object[] changeSize1D(java.lang.Object[] a,
                                                  int newSize)

### 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