当前位置:网站首页>List<Long>,List<Integer>互相转换
List<Long>,List<Integer>互相转换
2022-07-28 05:17:00 【wang0112233】
Integer转Long
List<Long> listLong = JSONArray.parseArray(listInt.toString(),Long.class);Long 转Integer
//list<Long>转list<Integer>
List<Integer> integerList = JSONArray.parseArray(LongList.toString(), Integer.class);String转List<String>
String[] split = ctrDO.getTypeLimit().split(",");
List<String> regularList = Arrays.asList(split);String转Long
List<Long>=stringList.stream().map(Long::valueOf).collect(Collectors.toList());Long转String
List<String>=longList.stream().map(String::valueOf).collect(Collectors.toList());
边栏推荐
- 个人写的一个文件上传工具网站
- I interviewed a 38 year old programmer and refused to work overtime
- Advanced assignment method of ES6 -- Deconstruction assignment
- 使用nfpm制作rpm包
- 凛冬已至,程序员该怎么取暖
- Simulink automatically generates STM32 code details
- Bean的作用域、执行流程、生命周期
- 【ARXIV2205】Inception Transformer
- [slam] lvi-sam analysis - Overview
- 2022 summer practice (PowerDesigner tutorial learning record) (first week)
猜你喜欢

Reading notes of SMT practical guide 1

Duoyu security browser will improve the security mode and make users browse more safely

How about ink cloud?

Bean的作用域、执行流程、生命周期

Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)

Configuration experiment of building virtual private network based on MPLS

First acquaintance with C language (1)

自定义Json返回数据

After ruoyi generates the code corresponding to the database, what should I do to make the following image look like

【CVPR2022】Multi-Scale High-Resolution Vision Transformer for Semantic Segmentation
随机推荐
The most detailed installation of windows10 virtual machine, install virtual machine by hand, and solve the problem that the Hyper-V option cannot be found in the home version window
php7.1 连接sqlserver2008r2 如何测试成功
[slam] lvi-sam analysis - Overview
Reading notes of SMT practical guide 1
oracle查看锁表语句、解锁方法
How about ink cloud?
11. < tag dynamic programming and subsequence, subarray> lt.115. Different subsequences + Lt. 583. Deletion of two strings DBC
Check box error
Test Development - UI testing in automated testing
Mysql数据库索引(innodb引擎)
【单例模式】懒汉模式的线程安全问题
JMeter related knowledge sorting
Pipe /createpipe
YUV to uiimage
After ruoyi generates the code corresponding to the database, what should I do to make the following image look like
接口幂等性问题
Performance test classification
SSLError
Clickhouse pit filling note 2: the join condition does not support non equal judgments such as greater than and less than
7.<tag-字符串和API的取舍>补充: 剑指 Offer 05. 替换空格