st login: Tue Sep 8 08:18:52 on ttys007 The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. (base) MAC:Tue Sep 08:11:18:~> jshell | Welcome to JShell -- Version 14.0.1 | For an introduction type: /help intro jshell> boolean[] foo = new boolean[5]; foo ==> boolean[5] { false, false, false, false, false } jshell> false $2 ==> false jshell> char[] goo = new char[5] goo ==> char[5] { '\000', '\000', '\000', '\000', '\000' } jshell> String[] s = new String[5]; s ==> String[5] { null, null, null, null, null } jshell> s s ==> String[5] { null, null, null, null, null } jshell> s[0] $6 ==> null jshell> s[0].length() | Exception java.lang.NullPointerException | at (#7:1) jshell> s.length $8 ==> 5 jshell> s.length = 7; | Error: | cannot assign a value to final variable length | s.length = 7; | ^------^ jshell>