KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > indentation > InputUseTwoSpaces


1 /*
2  * InputUseTabs.java
3  *
4  * Created on December 24, 2002, 10:28 PM
5  */

6
7 package com.puppycrawl.tools.checkstyle.indentation;
8
9 /**
10  *
11  * @author jrichard
12  */

13 public class InputUseTwoSpaces {
14     
15   /** Creates a new instance of InputUseTabs */
16   public InputUseTwoSpaces() {
17     boolean test = true;
18     if (test)
19     {
20       while (
21         test == false) {
22         System.exit(2);
23       }
24     }
25      System.exit(3);
26   }
27     
28 }
29
30 class Test {
31   public static void main(String JavaDoc[] args) {
32     System.out.println(" Hello" +
33       new Object JavaDoc() {
34         public String JavaDoc toString() {
35           return "World";
36         }
37       });
38
39     new Object JavaDoc()
40       .toString()
41       .toString()
42       .toString()
43       .toString()
44       .toString();
45   }
46 }
47
Popular Tags