Console based factional calculator written in Java