Flatmapping in Java : Given the following two dimensional array

    int[][] arr = {{1, 2}, {3, 4}, {5, 6}};
What is the most elegant way in java to flatmap this to the following form

    int[] arr = {1, 3, 5, 2, 4, 6};
It can be assumed that all the nested arrays are of same length.