KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > InputArrayTrailingComma


1 package com.puppycrawl.tools.checkstyle;
2
3 public class InputArrayTrailingComma
4 {
5     int[] a1 = new int[]
6     {
7         1,
8         2,
9         3,
10     };
11
12     int[] a2 = new int[]
13     {
14         1,
15         2,
16         3
17     };
18
19     int[] b1 = new int[] {1, 2, 3,};
20     int[] b2 = new int[] {1, 2, 3};
21
22     int[][] c1 = new int[][] {{1, 2,}, {3, 3,}, {5, 6,},};
23     int[][] c2 = new int[][] {{1, 2}, {3, 3,}, {5, 6,}};
24
25     int[][] d1 = new int[][]
26     {
27         {1, 2,},
28         {3, 3,},
29         {5, 6,},
30     };
31     int[][] d2 = new int[][]
32     {
33         {1,
34          2},
35         {3, 3,},
36         {5, 6,}
37     };
38
39     int[] e1 = new int[] {
40     };
41 }
42
Popular Tags