Quiz on Java Stack Class