配列とリストの相互変換

配列とリストの相互変換のメモ。

配列からリストへ変換

Arrays.asList(array);

リストから配列へ変換

list.toArray(new Object[0]);