Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java fill two dimensional array stream

static String[][] testArraySetAll() {
    String[][] array = new String[3][3];
    Arrays.setAll(array, x -> {
        Arrays.setAll(array[x], y -> String.format("%c%c", letter(x), letter(y)));
        return array[x];
    });
    return array;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #fill #dimensional #array #stream
ADD COMMENT
Topic
Name
9+5 =