chapter_003/src/main/java/ru/job4j/convert/Convert.java
/**
      * Convert an array into a collection
      *
      * @param array - the array
      * @return List - the collection.
      */
Convert an array into a collection
@param array - the array
@return List - the collection.
Convert an array into a collection @param array - the array @return List - the collection .
public List<Integer> toList(int[][] array) {
        ArrayList<Integer> list = new ArrayList<>();
        for (int[] number : array) {
            for (int  numberOne : number) {
                list.add(numberOne);
            }
        }
        return list;
    }
public List < Integer > toList ( int [ ] [ ] array ) { ArrayList < Integer > list = new ArrayList < > ( ) ; for ( int [ ] number : array ) { for ( int numberOne : number ) { list . add ( numberOne ) ; } } return list ; }
Convert an array into a collection
 @param array - the array
 @return List - the collection.
Convert an array into a collection @param array - the array @return List - the collection .