Data update
This commit is contained in:
parent
07c7092a52
commit
61b93a2cd1
313 changed files with 6160 additions and 346 deletions
|
|
@ -0,0 +1,14 @@
|
|||
Java has an interactive REPL (Read-Evaluate-Print-Loop) console, jshell, that is included with the JDK.
|
||||
The REPL is started by invoking: $JAVA_HOME/bin/jshell
|
||||
Here is a sample session to accomplish the task.
|
||||
|
||||
| Welcome to JShell -- Version 20
|
||||
| For an introduction type: /help
|
||||
|
||||
jshell> String concat(String a, String b, String c) { return a + c + c + b; }
|
||||
| created method concat(String, String, String)
|
||||
|
||||
jshell> concat("Rosetta", "Code", ":")
|
||||
$2 ==> "Rosetta::Code"
|
||||
|
||||
jshell>
|
||||
Loading…
Add table
Add a link
Reference in a new issue