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 MinMax3

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

public class MinMax3
extends java.lang.Object

Constructor Summary
`MinMax3()`

Method Summary
`static void` | `main(java.lang.String[] args)` test program
`static MinMaxPair` | `minMax(java.lang.Comparable[] a)`

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

Constructor Detail

### MinMax3

    public MinMax3()

Method Detail

### minMax

    public static MinMaxPair minMax(java.lang.Comparable[] a)

  Returns:
    a MinMaxPair p such that p.min and p.max give the position of the min and max elements in a[0:a.length-1]
  Throws:
    java.lang.IllegalArgumentException - when a has no elements

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