FizzBuzz/Java: Difference between revisions
Content added Content deleted
imported>Er2 No edit summary |
imported>Er2 (→Lambda with Arrays: postincrement didn't do anything other than mislead the reader) |
||
Line 92: | Line 92: | ||
public static void main( String [] args ) { |
public static void main( String [] args ) { |
||
int [] x = new int [100]; |
int [] x = new int [100]; |
||
Arrays.setAll(x, j -> j |
Arrays.setAll(x, j -> j); |
||
Arrays.stream(x).forEach(i -> { |
Arrays.stream(x).forEach(i -> { |
||
if(i == 0) return; |
if(i == 0) return; |