I am running into an IllegalStateException when the code is run:
if(instruction.equals("B") && q > 0){ ListIterator