Programmers calculator written in java