Last active
October 13, 2017 21:59
-
-
Save mcupak/69548198574d5714a98b8c90d623090e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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