java之List~Integer 与List~Long 互相转换的方法分享
									下文笔者讲述Integer和Long之间的list集合值互相转换的方法分享,如下所示
				 
				
实现思路:
    借助com.alibaba.fastjson包下的JSONArray类实现
例
public static void main(String[] args) {
        List<Integer> listInt = new ArrayList<>();
        listInt.add(88);
        listInt.add(99);
        listInt.add(1000);
        List<Long> listLong = JSONArray.parseArray(listInt.toString(),Long.class);
        System.out.println(listLong);
} 
 									
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

			
               
               
               
               
          
