LoginSignup
0
0

More than 5 years have passed since last update.

JDK 9 Early Access Releasesのjjsは継続行対応していた

Posted at

JDK 9 Early Access ReleasesでJShellを試すつもりがjjsに。
https://jdk9.java.net/download/


boolean a = true
if(a == true) {
    print("True")
}

JDK 1.8.0_102は、if以降を1行で入力しないとエラーになります。
jjs8.png

JDK 9 Early Access Releasesは、~{[Enter]後に継続入力プロンプト「…> 」になります。
}[Enter]後にif文が実行されます。
jjs9.png

勿論JShellは複数行対応されています。
jshell.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0