KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > editor > formatting > testReformat


1 /*
2 * testReformat.java
3 *
4 * Created on January 10, 2007, 4:29 PM
5 *
6 * To change this template, choose Tools | Template Manager
7 * and open the template in the editor.
8 */

9
10 package org.netbeans.test.editor.formatting;
11
12 /**
13 *
14 * @author jp159440
15 */

16 public class testReformat {
17
18 /** Creates a new instance of testReformat */
19 public testReformat() {
20 }
21
22 public String JavaDoc doSmt(int a,
23 String JavaDoc b,
24 boolean c) {
25 do {
26 switch (a) {
27 case 1:
28 System.out.println("one");
29 break;
30 case 2:
31 System.out.println("two");
32 default:
33 if(a>4) {
34 while(a!=4) {
35 a--;
36 }
37 } else if(a>2)
38 a=4;
39 }
40 } while (a==2);
41 //comment
42

43 /**
44 * a g
45 * b f
46 * c e
47 * d
48 * c e
49 * b f
50 * a g
51 */

52 return "done";
53 // comments
54
}
55
56 }
57
Popular Tags