Last active
March 27, 2019 20:23
-
-
Save isauravmanitripathi/8af15bb9c85878e150e412b4851a3afa 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
class Hello { | |
// other parts of the class | |
private void sayHello() { | |
System.out.println("Hello"); | |
System.out.println("This is a method called sayHello"); | |
System.out.println("It contains 3 statement"); | |
} | |
public static void main(final String [] args) { | |
final Hello helloObject = new Hello(); | |
helloObject.sayHello(); | |
helloObject.sayHello(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment