The trailing comma is ignored. From the Java specification:
A trailing comma may appear after the last expression in an array initializer and is ignored.
More Related Contents:
- I am attempting write a class that multiplies two matrices using arrays. Are there any errors in the code? [closed]
- How to put one dimensional array in 2d array java
- How do I do a deep copy of a 2d array in Java?
- The best way to print a Java 2D array? [closed]
- How do I copy a 2 Dimensional array in Java?
- Java Comparator class to sort arrays
- How to convert a 1d array to 2d array?
- Sorting 2D array of strings in Java
- Getting the array length of a 2D array in Java
- How do I create a jagged 2d array in Java?
- Arrays.fill with multidimensional array in Java
- Java: Multi-dimensional array vs. one-dimensional
- Arrays constants can only be used in initializers error
- Pascal’s triangle 2d array – formatting printed output
- Multi-dimensional array transposing
- Is it possible to dynamically build a multi-dimensional array in Java?
- casting Arrays.asList causing exception: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList
- Iterate through 2 dimensional array
- Matrix multiplication using arrays
- How to deep copy an irregular 2D array
- Printing out a 2D array in matrix format
- Find elements surrounding an element in an array
- Multiplication based on input integer and return array- Need help in storing array while looping
- Immutable array in Java
- Quickest way to find missing number in an array of numbers
- Byte Array to Image object
- How do I sort two arrays in relation to each other?
- Java N-Dimensional Arrays
- Java Iterate Bits in Byte Array
- How to convert JSONArray to List with Gson?