(base) MAC:Wed Apr 21:14:00:conditional> 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 x = 1.5; x ==> 1.5 jshell> x.toString() | Error: | double cannot be dereferenced | x.toString() | ^--------^ jshell> Double.toString(6.02e23) $4 ==> "6.02E23" jshell> String avocado = "6.02e23" avocado ==> "6.02e23" jshell> Double.parseDouble(avocado) $6 ==> 6.02E23 jshell> Double.MAX_VALUE $7 ==> 1.7976931348623157E308 jshell> Double.MIN_VALUE $8 ==> 4.9E-324 jshell> Character.isAlphabetic('a') $9 ==> true jshell> Character.isAlphabetic('9') $10 ==> false jshell> Character.isAlphabetic('\n') $11 ==> false jshell> Character.isDigit('9') $12 ==> true jshell> Character.isDigit('8') $13 ==> true jshell> Character.isDigit('q') $14 ==> false jshell> Character.isISOControl('\n') $15 ==> true jshell> Character.isISOControl('9') $16 ==> false jshell> Character.isWhitespace(' ') $17 ==> true jshell> Character.isWhitespace('\n') $18 ==> true jshell> Character.isWhitespace('\t') $19 ==> true jshell> Character.isWhitespace('q') $20 ==> false jshell> Character.toLowerCase('A') $21 ==> 'a' jshell> Character.toUpperCase('A') $22 ==> 'A' jshell> Character.toUpperCase('r') $23 ==> 'R' jshell> Character.toUpperCase('9') $24 ==> '9' jshell> Character.swapCase('a') | Error: | cannot find symbol | symbol: method swapCase(char) | Character.swapCase('a') | ^----------------^ jshell> Character.toString('a') $25 ==> "a" jshell> "" + 'a' $26 ==> "a" jshell> Character.compare('a', 'b') $27 ==> -1 jshell> Character.compare('a', 'c') $28 ==> -2 jshell> Character.compare('a', '') | Error: | empty character literal | Character.compare('a', '') | ^ jshell> Character.compare('a', 'A') $29 ==> 32 jshell> Character.compare('a', 'b') < 0 $30 ==> true jshell> Character.compare('a', 'b') > 0 $31 ==> false jshell> Character.compare('a', 'b') >= 0 $32 ==> false jshell> Character.compare('a', 'b')<= 0 $33 ==> true