Yurttas/PL/OOL/Java/F/02/04/02/00/IDA00.java

Revision as of 13:44, 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 IDA00 {
16
17  public static void main(String[] args) {
18    IA o1 = new IA(2);
19
20    o1.output();
21
22    int n = o1.getSize();
23
24    int[] ia = new int[n];
25
26    ia = o1.getA0();
27
28    for(int i=0; i<n; i++)
29      System.out.println(ia[i]);
30
31    System.out.println();
32
33    o1.setA0(5);
34
35    o1.output();
36
37    DA o2 = new DA(2);
38
39    o2.output();
40
41    n = o2.getSize();
42
43    double[] da = new double[n];
44
45    da = o2.getA0();
46
47    for(int i=0; i<n; i++)
48      System.out.println(da[i]);
49
50    System.out.println();
51
52    o2.setA0(5);
53
54    o2.output();
55  }
56
57}