首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
List<Long> 转Long[]
2024-10-11
JAVA中List<Long> 转long[]的方法
之前每次都是通过循环去写,感觉代码不够优雅,百度了一下,查到如下的写法,先记下来: List<Long> list = new ArrayList<Long>(); list.add(1L); list.add(2L); list.add(3L); System.out.println(list); long [] array = list.stream().mapToLong(t->t.longValue()).toArray();
热门专题
什么时候Controller会返回一个字符串
mvn复制第三方jar到指定目录
如何对Dataframe删除某些行
第三方库quot的包
flink groovy 动态
spark standalone 默executor堆外内存
原生ajax设置自定义请求头
mathtype公式章一节一怎么去掉
结果文档插入到数组中的管道表达式是
phpmyadmin提权
腾讯地图 点击maker显示详情
c# 进程 setParent WinForm
spring mvc 动态路径 参数提取
ueditor 复制会多个换行
extjs gridpanel 表头居中
bat每分钟运行一次php
winform右键菜单插入分割线
C 参数列表构造函数
swift ViewController 跳转传值
linux 如何实现log滚动存储