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 E00 {
16
17 public static void main(String[] args)
18 throws AException
19 {
20
21 String s = "A";
22
23 m(s, "X");
24
25 s = "B";
26
27 m(s, "Y");
28
29 }
30
31 public static void m(String s,
32 Object o)
33 throws AException
34 {
35 if(s!="A")
36 throw new AException(s,
37 o);
38 System.out.println(s);
39 }
40
41}