KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > java > testsources > Remover


1 /*
2  * EtalonForRemover.java
3  *
4  * Created on May 30, 2000, 4:55 PM
5  */

6
7 package org.netbeans.test.java.testsources;
8
9 /**
10  *
11  * @author jbecicka
12  * @version
13  */

14 public abstract class Remover extends Object JavaDoc {
15
16     /** fields
17      *
18      */

19     
20     public static int a,b,c,d,e,f;
21
22     /** Creates new EtalonForRemover */
23     public Remover() {
24     }
25     
26     /** javadoc comment
27      * blah blah blah
28      */

29     
30     /* non javadoc comment */
31     public abstract int doNothing();
32     
33     /** javadoc comment doImportant*/
34     public void doImportant(){
35         int b=0;
36         for(int i=0; i<0; i++){
37             b+=i;
38         }
39     }
40     
41     
42     /** Overloaded method1
43      */

44     public static int method1(int parameter1) throws java.io.IOException JavaDoc {
45         /*This is body of mehodmethod1*/
46         for (int i=0;i<100;i++){
47             System.out.println(new Integer JavaDoc(i).toString());
48         }
49         return 0;
50     }
51     
52     /** Overloaded method1
53      */

54
55     public static int method1(int parameter1,int parameter2) throws java.io.IOException JavaDoc {
56         /*This is body of mehodmethod1*/
57         for (int i=0;i<100;i++){
58             System.out.println(new Integer JavaDoc(i).toString());
59         }
60         return 0;
61     }
62     
63     /** Overloaded method1
64      */

65
66     public static int method1(float parameter1,float parameter2,final int parameter3) throws java.io.IOException JavaDoc {
67         /*This is body of mehodmethod1*/
68         for (int i=0;i<100;i++){
69             System.out.println(new Integer JavaDoc(i).toString());
70         }
71         return 0;
72     }
73     
74     /** Overloaded method2
75      */

76     public static int method2(int parameter1) throws java.io.IOException JavaDoc {
77         /*This is body of mehodmethod2*/
78         for (int i=0;i<100;i++){
79             System.out.println(new Integer JavaDoc(i).toString());
80         }
81         return 0;
82     }
83     
84     public double fa=3.1,fb=3.2,fc=3.3,fe=3.4,fd=3.5;
85     
86     /** Overloaded method2
87      */

88     public static short method2(int parameter1,int parameter2) throws java.io.IOException JavaDoc {
89         /*This is body of mehodmethod2*/
90         for (int i=0;i<100;i++){
91             System.out.println(new Integer JavaDoc(i).toString());
92         }
93         return 0;
94     }
95     
96     /** overloaded method 2
97      */

98     public static long method2(float parameter1,float parameter2,final int parameter3) throws java.io.IOException JavaDoc {
99         /*This is body of mehodmethod2*/
100         for (int i=0;i<100;i++){
101             System.out.println(new Integer JavaDoc(i).toString());
102         }
103         return 0;
104     }
105     
106     /** InnerClass
107      */

108     public class InnerClass {
109
110         /** method from Inner Class */
111         public void newMethod() {
112         }
113     }
114     
115     /** Inner Interface
116      */

117     public interface InnerInterface {
118
119         /** filed from Inner Interface*/
120         public static int newField=123;
121         
122         /** method from Inner Interface */
123         public void newMethod();
124     }
125 }
Popular Tags