Yurttas/PL/OOL/CS/F/02/05/04/00/A00.java

 1/**
 2 *  Copyright(C) 1998
 3 *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4 *
 5 *  Permission to use, copy, modify, and distribute this
 6 *  software and its documentation for EDUCATIONAL purposes
 7 *  and without fee is hereby granted provided that this
 8 *  copyright notice appears in all copies.
 9 *
10 *  @date   : January 1, 1998.
11 *  @authorĀ : Salih Yurttas.
12 */
13
14
15public class A00 {
16
17  public static void main(String[] args) {
18
19    A a = new A(8);
20
21    int s = a.sum();
22
23    System.out.println("sum = " +
24                       s);
25
26    System.out.println();
27
28    s = a.sum(2);
29
30    System.out.println("sum = " +
31                       s);
32
33    System.out.println();
34
35    s = a.sum(2,7);
36
37    System.out.println("sum = " +
38                       s);
39
40  }
41
42}