Simple calculator based on java