[java] Java method to sum any number of ints