Thread: Using Stacks
View Single Post
  #3 (permalink)  
Old 11-27-2007, 05:08 PM
ravian ravian is offline
Senior Member
 
Join Date: Nov 2007
Posts: 115
ravian is on a distinguished road
Just tested it. Works fine but I have a questions.

Code:
System.out.println(newStack.get(1));
This works perfectly fine thus violating the stacks principle.
Reply With Quote