Friday, 8 January 2021

Jshell: Writing Multiple lines

Jshell can check whether statement is complete or not. if the statement is not complete then jshell automatically opens continuation prompt (...>), you can enter subsequent statements in continuation prompt and proceed.

jshell> class Employee{
   ...>     String firstName;
   ...>     String lastName;
   ...> }
|  created class Employee

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment