Yurttas/PL/OOL/Java/F/02/01/06/A01.java
Jump to navigation
Jump to search
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 A01 {
16
17 public static void main(String[] args) {
18
19 A a0 = new A();
20
21 puta(a0);
22
23 System.out.println();
24
25 a0.outi012();
26
27 System.out.println();
28
29 a0.i0 = 3;
30 a0.seti12(7);
31
32 int[] ia = new int[3];
33 ia = a0.geti012();
34
35 puta(ia);
36
37 }
38
39 public static void puta(final A a) {
40 System.out.println("i0 = " +
41 a.i0);
42 System.out.println("i1 = " +
43 a.geti1());
44 System.out.println("i2 = " +
45 a.geti2());
46 }
47
48 public static void puta(final int[] a) {
49 int n = a.length;
50 for(int i=0; i<n; i++)
51 System.out.println("i" +
52 i +
53 " = " +
54 a[i]);
55 }
56
57}