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

## applications
Class Insert

    java.lang.Object
      |
      +--applications.Insert

public class Insert
extends java.lang.Object

Constructor Summary
`Insert()`

Method Summary
`static void` | `insert(java.lang.Comparable[] a, int n, java.lang.Comparable x)` insert x into the sorted array a[0:n-1] a remains sorted after the insertion
`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

### Insert

    public Insert()

Method Detail

### insert

    public static void insert(java.lang.Comparable[] a,
                              int n,
                              java.lang.Comparable x)

  insert x into the sorted array a[0:n-1] a remains sorted after the insertion
  Throws:
    java.lang.IllegalArgumentException - when array a cannot accomodate the extra element

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