Java postfix calculator coursework