• #$ ! 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"
) ( 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"
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
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)