Hey all,
I finally went with the following code. I'm getting numberformatexceptions out the rear.. was hoping someone could help me with this bit of code. Any tips/tricks/advice is greatly appreciated. Thanks in Advance.
Andrew
/* Main Class */
import java.io.*;
import java.lang.*;
import java.util.*;
public class program2 {
public static void main (String args[]) throws IOException, NumberFormatException {
BufferedReader keyboard = new BufferedReader ( new InputStreamReader (System.in));
System.out.print("How many Processes would you like to do? "

;
int procnum = Integer.parseInt (keyboard.readLine());
System.out.println(procnum);
MyQueue que = new MyQueue(procnum);
System.out.println("\n" + "a: Add two VLN's. r: Reverse a String."

;
/* Reads in Processes to be performed */
int i = 1;
while (i <= procnum) {
System.out.print("\n" + "Enter Your Process: "

;
que.enqueue( ((char) keyboard.read()) );
i++;
}
// End Process Reading
while (que.hasElements()) {
switch( (char)que.dequeue() ) {
case 'a': {
System.out.print("Enter the amount of numbers in the first VLN: "

;
int am1 = (int)(Integer.parseInt(keyboard.readLine()));
System.out.print("\n" + "Enter the amount of numbers in the second VLN: "

;
int am2 = (int) (Integer.parseInt(keyboard.readLine()));
MyStack num1 = new MyStack(am1);
MyStack num2 = new MyStack(am2);
for (int j = 0; j < am1; j++ ) {
System.out.print("\n" + "Please enter a numbers for Number 1: "

;
num1.push(new Integer(keyboard.readLine() ));
} // End For Loop
for (int j = 0; j < am2; j++ ) {
System.out.print("\n" + "Please enter a numbers for Number 2: "

;
num2.push( new Integer(keyboard.readLine() ));
} // End For Loop
System.out.println("Test 1"

;
MyStack resultant = new MyStack(am1+am2);
int result;
System.out.println("Test 2"

;
while (num1.hasElements() || num2.hasElements() ) {
result = (( (Integer)resultant.pop()).shortValue() );
System.out.println("test 3"

;
result = (( (Integer)num1.pop()).shortValue() + ((Integer)num2.pop()).shortValue() );
resultant.push(new Integer (result % 10));
System.out.println("Test 4"

;
resultant.push(new Integer (result / 10));
} // End While
System.out.println("Test 5"

;
while (resultant.hasElements() ) {
System.out.print("The sum of your two numbers is: "

;
System.out.print(((Integer)resultant.pop()).shortValue() );
} // End While
break;
} // End Case A
case 'r' : {
System.out.print("How many Letters will you enter?"

;
int length = Integer.parseInt(keyboard.readLine());
MyStack reverse = new MyStack(length);
for ( i = 0; i < length; i++ ) {
System.out.print("\n" + "Enter the next letter in your word: "

;
reverse.push( new Character ((char)keyboard.read()) );
} // End For Loop
while( reverse.hasElements() ) {
System.out.print(((Character)reverse.pop()).charValue() );
} // End While
break;
} // End Case R
} // End Switch
} //End While
} // End Main
} // End Program 2
/* STack Class */
import java.lang.*;
public class MyStack {
private Object [] stack;
private int index= 0;
public MyStack(int size) {
stack = new Object [size];
} // End First Constructor
public void push (Object item) {
stack[index] = item;
index++;
} // End push
public Object pop () {
Object temp = stack[index];
index--;
return temp;
} // End Pop
public boolean hasElements() {
if (index == 0) {return false;}
else {return true;}
} // End hasElements
} // End MyStack
/* Que Class */
public class MyQueue {
private char [] queue;
private int top = 0;
private int index =0;
public MyQueue ( int size ) {
queue = new char [size];
} // End Constructor
public void enqueue(char c) {
queue[index] = c;
index = index + 1;
} // End enqueue
public char dequeue() {
char temp = queue[top];
top++;
return temp;
} // End Dequeue
public boolean hasElements() {
if (index <= top) {return false;}
else {return true;}
} // End hasElements
} // End Queue