• ) C G D
• 5 ) 4 A E 4 D AC
• 1 B E E : A E 0
• E IBC DD A D 0C G
• 3 IE ( A D 0C G
Slide 4
Slide 4 text
( ( )(
• "#$
•
• #$ !
jshell> s = """
...> test
...> test
...> """
s ==> "test¥ntest¥n"
jshell> s = """
...> test
...> test
...> """
s ==> " test¥n test¥n"
jshell> s = """
...> test
...> test
...> """
s ==> "test¥n test¥n"
jshell> s = """
...> test
...> test
...> """
s ==> " test¥n test¥n"
Slide 5
Slide 5 text
3 ( 4 ) ) )3
•
•
IntStream.rangeClosed(1, 20)
.mapToObj(i -> switch(i % 15) {
case 3, 6, 9, 12 -> "Fizz";
case 5,10 -> "Buzz";
case 0 -> "FizzBuzz";
default -> i + "";
})
.map(FizzBuzz::makeStr)
.forEach(System.out::print);
Slide 6
Slide 6 text
3 ( 4 ) ) )3
• 1 2
var result = switch (i % 15) {
case 3, 6, 9, 12:
yield "Fizz";
case 5, 10:
yield "Buzz";
case 0:
yield "FizzBuzz";
default:
yield i + "";
}
Slide 7
Slide 7 text
3 5
•
Slide 8
Slide 8 text
1 3
• 26 G J
• J 6
• 1 E CB P
Slide 9
Slide 9 text
0
•
• !
Slide 10
Slide 10 text
• .
• . . .
• . .
•
• E A
Slide 11
Slide 11 text
• ( D B
• ) (
var s = """
select *
from %1$s join %2$s on %1$s_id=%2$s_id
""".formatted("product", "category");
"from product join category on product_id=category_id"
Slide 12
Slide 12 text
) (
• [ V
• 5 I : G NEGA 4 A SNA BBA M
• 2AG B G 5 GG6 EINA 0R A NE IM
• V ]
• ( 7AH PA N A I AIN 4 8 AA 48 1 CA GGA N
• 6 CEIC 9 G AR A EHAIN G
• ( 8 EN 0R AMME IM 8N I
• ( 9ARN G M 8N I
• 7A M 6 APEA
• ( 8A GA 9S AM 6 APEA
• T
• 6 NNA I 4 N EIC B EIMN I A B 6 APEA
• )( 6 NNA I H N EIC B M EN 6 APEA
• :A N -63 3I N
Slide 13
Slide 13 text
- 3 - 53 2
•
Slide 14
Slide 14 text
3
•
jshell> String s = null
s ==> null
jshell> s.length()
|
java.lang.NullPointerException
| at (#7:1)
jshell> String s = null
s ==> null
jshell> s.length()
|
java.lang.NullPointerException
| Cannot invoke method ‘length’ because ‘s’ is null
| at (#7:1)
Slide 15
Slide 15 text
3 6 3 6 ) (
( ) ) 3 63
•
• 9
Slide 16
Slide 16 text
3
• M M KR
• 1 D
K 3 aJ
•
Slide 17
Slide 17 text
) 8 (: 6 3 )8 3 6
:8 2 1 )8 3 6
•
•
Slide 18
Slide 18 text
) ( ) )
• ) C
•
•
• ) ( (
record Leaf(int val) {}
var l = new Leaf(3);
System.out.println(l.val());
System.out.println(l);
3
Leaf[val=3]