質問編集履歴

1

インシデント

2020/12/10 15:20

投稿

aasifiuuf
aasifiuuf

スコア3

test CHANGED
File without changes
test CHANGED
@@ -20,43 +20,43 @@
20
20
 
21
21
  4 public class Sample10_29 {
22
22
 
23
- 5 public static void main(String[] args) {
23
+ 5 public static void main(String[] args) {
24
24
 
25
- 6 Stream<String> stream1 =
25
+ 6 Stream<String> stream1 =
26
26
 
27
- 7 Stream.of("belle", "akko", "ami", "bob", "nao").parallel();
27
+ 7 Stream.of("belle", "akko", "ami", "bob", "nao").parallel();
28
28
 
29
- 8 Map<String, List<String>> map1=
29
+ 8 Map<String, List<String>> map1=
30
30
 
31
- 9 stream1.collect(Collectors.groupingByConcurrent(
31
+ 9 stream1.collect(Collectors.groupingByConcurrent(
32
32
 
33
- 10 s -> s.substring(0, 1)));
33
+ 10 s -> s.substring(0, 1)));
34
34
 
35
- 11 System.out.println(map1);
35
+ 11 System.out.println(map1);
36
36
 
37
- 12 System.out.println("map1のクラス名 :" + map1.getClass());
37
+ 12 System.out.println("map1のクラス名 :" + map1.getClass());
38
38
 
39
39
  13
40
40
 
41
- 14 Stream<String> stream2 =
41
+ 14 Stream<String> stream2 =
42
42
 
43
- 15 Stream.of("nao", "akko", "ami").parallel();
43
+ 15 Stream.of("nao", "akko", "ami").parallel();
44
44
 
45
- 16 Map<Integer, String> map2 =
45
+ 16 Map<Integer, String> map2 =
46
46
 
47
- 17 stream2.collect(Collectors.toConcurrentMap(
47
+ 17 stream2.collect(Collectors.toConcurrentMap(
48
48
 
49
- 18 String::length,
49
+ 18 String::length,
50
50
 
51
- 19 s -> s,
51
+ 19 s -> s,
52
52
 
53
- 20 (s1, s2) -> s1 + " : " + s2));
53
+ 20 (s1, s2) -> s1 + " : " + s2));
54
54
 
55
- 21 System.out.println(map2);
55
+ 21 System.out.println(map2);
56
56
 
57
- 22 System.out.println("map2のクラス名 :" + map2.getClass());
57
+ 22 System.out.println("map2のクラス名 :" + map2.getClass());
58
58
 
59
- 23 }
59
+ 23 }
60
60
 
61
61
  24 }
62
62