Update stacks.java