KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Input15Extensions


1 // someexamples of 1.5 extensions
2

3 @interface MyAnnotation1 {
4     String JavaDoc name();
5     int version();
6 }
7
8 @MyAnnotation1(name = "ABC", version = 1)
9 public class Input15Extensions
10 {
11
12 }
13
14 enum Enum1
15 {
16     A, B, C;
17     Enum1() {}
18     public String JavaDoc toString() {
19         return ""; //some custom implementation
20
}
21 }
22
23 interface TestRequireThisEnum
24 {
25     enum DAY_OF_WEEK
26     {
27         SUNDAY,
28         MONDAY,
29         TUESDAY,
30         WEDNESDAY,
31         THURSDAY,
32         FRIDAY,
33         SATURDAY
34     }
35 }
36
37
38
Popular Tags