Skip to content

Instantly share code, notes, and snippets.

@mcupak
Last active October 13, 2017 21:59
Show Gist options
  • Select an option

  • Save mcupak/69548198574d5714a98b8c90d623090e to your computer and use it in GitHub Desktop.

Select an option

Save mcupak/69548198574d5714a98b8c90d623090e to your computer and use it in GitHub Desktop.
jshell> String sayHello(String name) {return "hello "+ name;}
| created method sayHello(String)
jshell> sayHello("readers of the blog")
$2 ==> "hello readers of the blog"
jshell> /methods
| String sayHello(String)
jshell> class HelloPrinter{ public static void sayHello(){System.out.println("hello readers of the blog");}}
| created class HelloPrinter
jshell> HelloPrinter.sayHello()
hello readers of the blog
jshell> /types
| class HelloPrinter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment