1
2
3
4
5
6
7
8
9
10
11 package com.puppycrawl.tools.checkstyle.checks.coding.arraytrailingcomma;
12
13
14 public class Example2 {
15 int[] numbers = {1, 2, 3};
16 boolean[] bools = {
17 true,
18 true,
19 false
20 };
21
22 String[][] text = {{},{},};
23
24 double[][] decimals = {
25 {0.5, 2.3, 1.1,},
26 {1.7, 1.9, 0.6},
27 {0.8, 7.4, 6.5,}
28 };
29
30 char[] chars = {'a', 'b', 'c'
31 };
32
33 String[] letters = {
34 "a", "b", "c"};
35
36 int[] a1 = new int[]{
37 1,
38 2
39 ,
40 };
41
42 int[] a2 = new int[]{
43 1,
44 2
45 ,};
46 }
47
48
49
50
51
52
53