JShell 还可以在我们部分键入现有类的名称时提供自动完成功能、变量或方法(通过按 Tab 键)。如果某个项目无法根据我们输入的内容确定,则会提供可能的选项。
在 JShell 中按 Tab 键 执行以下任务之一:
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>
以上就是在Java 9中,JShell中的Tab键有什么用途?的详细内容,更多请关注php中文网其它相关文章!
已抢65036个
抢已抢27967个
抢已抢15115个
抢已抢7605个
抢已抢9492个
抢已抢19247个
抢