JShell

2024. 5. 30. 22:29영어/java

반응형

usually, python programmer is easy to learn pathon. because they can learn it with python shell. That's why python is easy to learn

 

From java 9, java is equally easy to learn - JShell

JShell is java REPL(Read Eval Print Loop)

 

Let's learn this hands-on.

go to command prompt. enter "jshell"

 

enter "/help intro" 

 

 

You can see the sentence "The jshell tool allows you to execute Java code, getting immediate results.". it means if you enter java code, you can immediately see the result. 

For example, if you enter "5 * 9". you can see the result.

 

 

if you type wrong java code. JShell let you know what make it error. 

 

To go out of JShell, type "/exit"

 

if you go into JShell again, enter "jshell"

 

반응형

'영어 > java' 카테고리의 다른 글

java operator  (0) 2024.06.06
Installing java(windows)  (0) 2024.05.30