Presentation on how to chat with PDF using ChatGPT code interpreter
Java in the Past, Java in the Future
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. From External Iteration
To Internal Iteration
List<Long> nums = ...;
List<Long> nums2
= new ArrayList<>();
for (long n: nums) {
nums2.add(n*2L);
}
Before
26. From External Iteration
To Internal Iteration
List<Long> nums = ...;
List<Long> nums2 = nums.stream()
.map(new Function<Long,Long>(){
@Override
public Long aply(Long n) {
return n*2L;
}
})
.collect(Collectors.toList());
27. From External Iteration
To Internal Iteration
List<Long> nums = ...;
List<Long> nums2 = nums.stream()
.map(new Function<Long,Long>(){
@Override
public Long aply(Long n) {
return n*2L;
}
})
.collect(Collectors.toList());
Boilerplate!
28. From External Iteration
To Internal Iteration
List<Long> nums = ...;
List<Long> nums2 = nums.stream()
.map(
n -> n*2L
)
.collect(Collectors.toList());
After