1/**
2 * Copyright(C) 2004
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 : September 1, 2004.
11 * author : Salih Yurttas.
12 */
13
14
15public class TT<T> {
16
17 public static void tA(final TA<T> o,
18 final T t0,
19 final T t1) {
20 o.output();
21
22 int n = o.getSize0();
23
24 T[] ta = new T[n]; // this won't compile!
25
26 ta = o.getA0();
27
28 for(int i=0; i<n; i++)
29 System.out.println(ta[i]);
30
31 System.out.println();
32
33 n = o.getSize1();
34
35 ta = new T[n];
36
37 ta = o.getA1();
38
39 for(int i=0; i<n; i++)
40 System.out.println(ta[i]);
41
42 System.out.println();
43
44 o.setA0(t0);
45 o.setA1(t1);
46
47 o.output();
48 }
49
50}