Skip to content

Instantly share code, notes, and snippets.

@isauravmanitripathi
Last active March 27, 2019 20:23
Show Gist options
  • Save isauravmanitripathi/8af15bb9c85878e150e412b4851a3afa to your computer and use it in GitHub Desktop.
Save isauravmanitripathi/8af15bb9c85878e150e412b4851a3afa to your computer and use it in GitHub Desktop.
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