Nieuws

Execute System.out.println($1) and you’ll see 52 as the output. You can run jshell with the -v command-line argument (jshell -v) to generate verbose feedback.
System. out. println (s. length ()); } The difference is clear: No redundant casting: The variable s is ready to use as a String. Cleaner logic: Combines type-checking and assignment in one line.