4 ways to find the sum from 1 to 100 Java