Java based calculator to learn java