Yurttas/PL/OOL/CS/F/06/01/02/TA04.java

Revision as of 08:13, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="java" line start="1" enclose="div">/** * Copyright(C) 2004 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 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 TA04 {
16
17  public static void main(String[] args) {
18    TA<Integer,
19       Integer> o1 = new TA<Integer,
20                            Integer>(2,
21                                     2);
22
23    TT<Integer,
24       Integer> tII = new TT<Integer,
25                             Integer>();
26
27    tII.tA(o1,
28           5,
29           8);
30
31    System.out.println();
32
33    TA<Double,
34       Double> o2 = new TA<Double,
35                           Double>(2.0,
36                                   2.0);
37
38    TT<Double,
39       Double> tDD = new TT<Double,
40                            Double>();
41
42    tDD.tA(o2,
43           5.0,
44           8.0);
45
46    System.out.println();
47
48    TA<Integer,
49       Double> o3 = new TA<Integer,
50                           Double>(2,
51                                   2.0);
52
53    TT<Integer,
54       Double> tID = new TT<Integer,
55                            Double>();
56
57    tID.tA(o3,
58           5,
59           8.0);
60
61    System.out.println();
62
63    TA<Double,
64       Integer> o4 = new TA<Double,
65                            Integer>(2.0,
66                                     2);
67
68    TT<Double,
69       Integer> tDI = new TT<Double,
70                             Integer>();
71
72    tDI.tA(o4,
73           5.0,
74           8.0);
75  }
76
77}