Studying java9 (jShell)

From jShell which seems to be easy because I will do java9 a little

Below, raise the dos prompt on windows, move (cd) to the bin folder under JAVA_HOME, and then execute. (It is not necessary to move if you pass the PATH with the environment variable)

C:\Program Files\Java\jdk-9\bin>jshell.exe
|Welcome to JShell--Version 9
|For an overview, type:: /help intro

jshell> String regex = "^Hello";
regex ==> "^Hello"

jshell> Pattern p = Pattern.compile(regex);
p ==> ^Hello

jshell> p.matcher("Hello World").find();
$3 ==> true

jshell> p.matcher("hello World").find();
$4 ==> false

jshell>

If you want to end it, hit / exit.

If you install an IDE such as Eclipse, simple verification can be done immediately, so thank you is subtle, but I'm doing Java for the first time I want to move it a little It's an environment where Eclipse can't be installed There are cases where it is easier to call the Java API than to write a shell that runs on the server with just the shell. I wondered if it would be good at such times. I thought that it was "Oh" that something was output just by defining the variables.

Recommended Posts

Studying java9 (jShell)
Studying Java ―― 3
Studying Java ―― 9
Studying Java ―― 4
Studying Java -5
Studying Java ―― 1
Studying Java # 0
Studying Java ―― 8
Studying Java ②
Studying Java ―― 7
Studying Java ―― 2
Studying Java ①
Studying Java -10
Studying Java 8 (Optional)
Studying Java 8 (Stream)
Studying Java 8 (Collector / Collectors)
Studying Java 8 (see method)
Studying Java 8 (see constructor)
Studying Java ~ Part 8 ~ Cast
Studying Java 8 (lambda expression)
Java
Studying Java # 6 (How to write blocks)
Studying Java 8 (StaticIF and Default methods)
Studying Java 8 (String Joiner and join)
Studying java9 (dropWhile, takeWhile and Stream.ofNullable)
Java learning (0)
[Java] array
Java protected
[Java] Annotation
Java array
Java scratch scratch
java (constructor)
[Java] ArrayDeque
java (override)
java (method)
Java Day 2018
Java string
java (array)
Java static
java beginner 4
Studying Java 8 (date API in java.time package)
java jshell and var are too recommended!
Java (set)
java shellsort
[Java] compareTo
Java9 was included, so I tried jshell.
java reflexes
Java memorandum
☾ Java / Collection
Java array
[Java] Array
[Java] Polymorphism
Java review
java framework
[Java] Inheritance
FastScanner Java
Studying how to use the constructor (java)
java beginner 3
java (encapsulation)
Java inheritance
[Java] Overload