JShell: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<source lang="java"> | |||
System.out.println("Hello world!"); | |||
IntStream.range(1, 10).forEach(System.out::println); | |||
/exit | |||
</source> | |||
<source lang="bash"> | <source lang="bash"> | ||
jshell <(curl -s 'https://cdn.chorke.org/exec/cli/java/00_hello_world.jsh.txt') | jshell <(curl -s 'https://cdn.chorke.org/exec/cli/java/00_hello_world.jsh.txt') |
Revision as of 10:11, 21 February 2020
System.out.println("Hello world!");
IntStream.range(1, 10).forEach(System.out::println);
/exit
jshell <(curl -s 'https://cdn.chorke.org/exec/cli/java/00_hello_world.jsh.txt')
jshell ./00_hello_world.jsh
jshell -v
/exit