Last login: Tue Apr 20 08:33:33 on ttys002 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 Apr 20:09:37:~> jshell | Welcome to JShell -- Version 15.0.1 | For an introduction type: /help intro jshell> Double d = 1.5; d ==> 1.5 jshell> d.toString() $2 ==> "1.5" jshell> Double.toString(d) $3 ==> "1.5" jshell> Double.toString(3.14159) $4 ==> "3.14159" jshell> Character.isAlpabetic('a') | Error: | cannot find symbol | symbol: method isAlpabetic(char) | Character.isAlpabetic('a') | ^-------------------^ jshell> Character.isAlpabetic((int)'a') | Error: | cannot find symbol | symbol: method isAlpabetic(int) | Character.isAlpabetic((int)'a') | ^-------------------^ jshell> Character.isAlphabetic('a') $5 ==> true jshell> Character.isAlphabetic('5') $6 ==> false jshell> Character.isDigit('5') $7 ==> true jshell> Character.isDigit('a') $8 ==> false jshell> Character.isISOControlCharacter('\n | Error: | unclosed character literal | Character.isISOControlCharacter('\n | ^ jshell> Character.isISOControlCharacter('\n') | Error: | cannot find symbol | symbol: method isISOControlCharacter(char) | Character.isISOControlCharacter('\n') | ^-----------------------------^ jshell> Character.isISOControl('\n') $9 ==> true jshell> Character.isISOControl('\t') $10 ==> true jshell> Character.isISOControl('\a') | Error: | illegal escape character | Character.isISOControl('\a') | ^ | Error: | unclosed character literal | Character.isISOControl('\a') | ^ jshell> Character.isISOControl('\a') | Error: | illegal escape character | Character.isISOControl('\a') | ^ | Error: | unclosed character literal | Character.isISOControl('\a') | ^ jshell> Character.isISOControl('p') $11 ==> false jshell> Character.isWhitespace(' ') $12 ==> true jshell> Character.isWhitespace('\n') $13 ==> true jshell> Character.isWhitespace('\t') $14 ==> true jshell> Character.isWhitespace('q') $15 ==> false jshell> Character.toLowerCase('a') $16 ==> 'a' jshell> Character.toLowerCase('A') $17 ==> 'a' jshell> Character.toLowerCase('6') $18 ==> '6' jshell> Character.toString('a') $19 ==> "a" jshell> Characte.toString('\n') | Error: | cannot find symbol | symbol: variable Characte | Characte.toString('\n') | ^------^ jshell> Character.toString('\n') $20 ==> "\n" jshell> Character.toTitleCase('a') $21 ==> 'A' jshell> Character.compare('a', 'z') $22 ==> -25 jshell>