Java - calculates the total of the numbers 1-100