Two dimensional array list

前端 未结 9 1268
梦毁少年i
梦毁少年i 2020-11-28 05:09

I\'ve heard of using a two dimensional array like this :

String[][] strArr;

But is there any way of doing this with a list?

Maybe s

9条回答
  •  攒了一身酷
    2020-11-28 05:41

    If your platform matrix supports Java 7 then you can use like below

    List> myList = new ArrayList<>();
    

提交回复
热议问题