Skip to content

Instantly share code, notes, and snippets.

@haruo31
Created April 24, 2019 11:38
Show Gist options
  • Save haruo31/d94c186008d63ab53323fc802dfa8201 to your computer and use it in GitHub Desktop.
Save haruo31/d94c186008d63ab53323fc802dfa8201 to your computer and use it in GitHub Desktop.
output of jshell@OpenJDK-12
$ jshell
|  Welcome to JShell -- Version 12
|  For an introduction type: /help intro

jshell> /set feedback verbose
|  Feedback mode: verbose

jshell> var v = "AAA"
v ==> "AAA"
|  created variable v : String

jshell> var x = v.equals("AAA") ? "1" : 1;
x ==> "1"
|  created variable x : Serializable&Comparable<? extends Serializable&Comparable<?>&java.lang.constant.Constable&java.lang.constant.ConstantDesc>&java.lang.constant.Constable&java.lang.constant.ConstantDesc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment