【发布时间】:2016-06-17 13:13:21
【问题描述】:
我尝试了几种方法都不成功。
this.tileUpdateTimes 是 long[] 和 other.tileUpdateTimes 是 int[]
this.tileUpdateTimes = Arrays.stream(other.tileUpdateTimes).toArray(size -> new long[size]);
this.tileUpdateTimes = Arrays.stream(other.tileUpdateTimes)
.map(item -> ((long) item)).toArray();
我该如何解决这个问题?
【问题讨论】:
标签: java lambda java-8 java-stream