/* 
 * Copyright (c) 1999-2002, Xiaoping Jia.  
 * All Rights Reserved. 
 */

/**
 *  This program calculates the sum of an array of integers.
 */
public class Sum {

  public static void main(String[]args) {
    int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    int sum = 0;
    for (int i = 0; i < a.length; i++) {
      sum += a[i];
    }
    System.out.println("The sum is: " + sum);
  }

}