Skip to content
gqlxj1987's Blog
Go back

Use Jshell

Edit page

原文链接

A REPL is a simple, interactive programming environment that takes user input (Read), executes the user command (Evaluate), returns the result to the user (Print) and waits for the next user input (Loop). REPL

var部分的使用

一部分的自动补全

jshell> /imports
|    import java.io.*
|    import java.math.*
|    import java.net.*
|    import java.nio.file.*
|    import java.util.*
|    import java.util.concurrent.*
|    import java.util.function.*
|    import java.util.prefs.*
|    import java.util.regex.*
|    import java.util.stream.*
jshell> /vars
        |    String message = "medium"
        |    list $2 = (not-active)
..

jshell> /methods
        |    double volume(double)
        |    double cube(double)

jshell> /types
        |    class User

jshell> /imports
        |    import java.io.*
        |    import java.math.*
..

Edit page
Share this post on:

Previous Post
Simple Netty Tcp Server
Next Post
go to rust