KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > a > B


1 /*
2  * Copyright (C) 2005 GE Insurance Solutions
3  @license.text@
4   */

5 package a;
6
7 /**
8  * @author Pavel Vlasov
9  *
10  * @version $Revision$
11  */

12 public class B extends Z {
13     int aņo = 2005;
14     
15     int getAA() {
16         int ret=0;
17         try {
18             ret=Integer.parseInt("382");
19         } catch (NumberFormatException JavaDoc e) {
20         
21         }
22         return ret;
23     }
24     
25     void kala() {
26         try {
27             int b=Integer.parseInt("zz");
28             int a=33;
29             
30             Character.isJavaIdentifierStart('q');
31         } catch (NumberFormatException JavaDoc e) {
32             // -- VIOLATION --
33
}
34     }
35 }
36
Popular Tags