Practice of the math related skills in Java