Class ExceptionsDemo2

java.lang.Object
  extended by ExceptionsDemo2

public class ExceptionsDemo2
extends java.lang.Object

Demonstration of the 'finally' block.

Version:
Copyright (c) 2002 -- SCCC West
Author:
Prof. Carl B. Struck

Constructor Summary
ExceptionsDemo2()
           
 
Method Summary
static void main(java.lang.String[] args)
          Inputs an 'int' index, searches a String[] array of names and displays the matching element from the array to the terminal window.
 
Methods inherited from class
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionsDemo2

public ExceptionsDemo2()
Method Detail

main

public static void main(java.lang.String[] args)
Inputs an 'int' index, searches a String[] array of names and displays the matching element from the array to the terminal window.

Parameters:
args - The String[] array command line parameter
Throws:
java.util.InputMismatchException - if index is not an integer
java.lang.ArrayIndexOutOfBoundsException - if index is less than zero (0) or greater than array.length - 1
java.lang.RuntimeException - handles any unexpected exceptions