我的github
posts - 3243,  comments - 42,  views - 158万

List<int[]>示例:https://blog.csdn.net/Awt_FuDongLai/article/details/115827705

list<list<string>>:不存在?

>>ArrayList<ArrayList<String>>格式转换成 二维数组?:https://zhidao.baidu.com/question/373288648056920644.html

String[][] array_2=(String[][]) arraylist.toArray(new String[0][0]);

>>ArrayList<String[]> array_list 我想把它转换成一个二维字符串数组:https://www.coder.work/article/3543766

public static void main( String[] args ){
  String[] s1 = new String[]{ "11", "12", "13" };
  String[] s2 = new String[]{ "21", "22" };
  List<String[]> list = new ArrayList<String[]>();
  list.add(s1);
  list.add(s2);
  String[][] ss = list.toArray(new String[0][0]);
}

 

posted on   XiaoNiuFeiTian  阅读(12)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2023-01-09 SQL查询字段中包含某字符串
2023-01-09 The total number of locks exceeds the lock table size
2020-01-09 An Overview of Symbol Recognition符号识别综述
2019-01-09 Deep learning for visual understanding: A review
2019-01-09 Multi-Sensor, Multi- Network Positioning
2017-01-09 Maya+3dsMax三维建模
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示