arr1[3] = 46; // initializing the 4th element of the array arr1 int[] arr2; // declaration arr2 = new int[5]; // then memory allocation int[] arr3 = {1,2,3,4,5 ...
Download the formatter and run it with: To reformat changed lines in a specific patch, use google-java-format-diff.py. Note: There is no configurability as to the formatter's algorithm for formatting.