Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Jshell: /!: Re run last executed statement

/! is used to run last Executed Statement.

 

Step 1: Open terminal and execute the command jshell.

$jshell
| Welcome to JShell -- Version 10.0.2
| For an introduction type: /help intro

jshell>

 

Step 2: Execute below statements.

System.out.println("Hello")

System.out.println("***********")

jshell> System.out.println("Hello")
Hello

jshell> System.out.println("***********")
***********

 

Step 3: Execute the command /! To re run last Executed statement.

jshell> /!
System.out.println("***********")
***********

 

 

 

Previous                                                    Next                                                    Home


This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

Jshell: /!: Re run last executed statement

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×