This is not very important, but I was curious if there is a way to write one single liner Java, perhaps using guava or something to fill the array with elements that have the same value. For example, for example, Arrays.getSameElementArray(new long[12], 42L);
source share