However, as I said, unlike my DoublyLinkedList, the MyStack only knows what's in the front and the size and if the stack is empty.
Are you sure you're supposed to be using a stack to do this?
Type: Posts; User: javapenguin
However, as I said, unlike my DoublyLinkedList, the MyStack only knows what's in the front and the size and if the stack is empty.
Are you sure you're supposed to be using a stack to do this?
Also, you do realize that Integer has a method called compareTo(Object obj) that will let you compare Integers to see which one is greater. You'll need to make the two Stacks parallel so that when...
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import java.util.*;
import java.io.*;
//Paul Adcock
// Assignment 4
// Lasted Worked On: 10/12/2010
//...