JShell can also provide autocomplete functionality when we partially type the name of an existing class , Variable or Method (by pressing the Tab key). If an item cannot be determined based on what we entered, possible options are provided.
Press the Tab key in JShell Perform one of the following tasks:
<strong>C:\Users\User>jshell | Welcome to JShell -- Version 9.0.4 | For an introduction type: /help intro jshell> String studentName(String firstName, String lastName) ...> { ...> return firstName + lastName; ...> } | created method studentName(String, String) jshell> /methods | String studentName(String, String) jshell> str <Press Tab Key> studentName( jshell> studentName( studentName( Signatures: String studentName(String firstName, String lastName) <press tab again to see documentation> jshell> studentName( String studentName(String firstName, String lastName) <no documentation found> <press tab again to see all possible completions; total possible completions: 545></strong>
The above is the detailed content of What is the purpose of the Tab key in JShell in Java 9?. For more information, please follow other related articles on the PHP Chinese website!