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 A03 {
16
17 public static void main(String[] args) {
18
19 A a = new A();
20
21 a.printA();
22
23 int i = a.getFirst();
24
25 System.out.println("a[0] = " + i);
26
27 i = a.getLast();
28
29 System.out.println("a[1] = " + i);
30
31 System.out.println();
32
33 int[] b = new int[2];
34
35 b = a.getA();
36
37 System.out.println("i0 = " + b[0]);
38 System.out.println("i1 = " + b[1]);
39
40 System.out.println();
41
42 a.printA();
43
44 a.setFirst(5);
45 a.setLast(9);
46
47 a.printA();
48
49 a.setA(4,3);
50
51 a.printA();
52
53 a.setA(b);
54
55 a.printA();
56
57 }
58
59}