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
15import java.util.Vector;
16
17public class InitOut {
18
19 public static Vector init() {
20 byte[] b = {0,
21 15,
22 31,
23 63};
24
25 int n = b.length;
26
27 Vector v = new Vector();
28
29 for(int i=0; i<n; i++)
30 v.addElement(new Byte(b[i]));
31
32 return v;
33 }
34
35 public static void out(Vector a) {
36 int n = a.size();
37
38 for(int i=0; i<n; i+=2)
39 System.out.println((Byte)a.elementAt(i));
40
41 System.out.println();
42
43 for(int i=1; i<n; i+=2)
44 System.out.println((Byte)a.elementAt(i));
45 }
46
47}