Last active
February 24, 2024 15:41
-
-
Save Shounaks/031c9013fc1afbdc0eaea01c2fa268d5 to your computer and use it in GitHub Desktop.
Java Code to test gist
This file contains 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
public class HelloWorld{ | |
String name = "INITIAL"; | |
public static void main() { | |
//TODO: remove this comment | |
String str = new StringBuilder("Hello").append(" World of Gists!").toString(); | |
System.out.println(str); | |
return; | |
} | |
private static getName() { | |
return "Shounak"; | |
} | |
private static setNameWithNumber(String name,int ignoredNumber) { | |
this.name = name + ignoredNumber; | |
} | |
} | |
enum numbers{ | |
ZERO,ONE,TWO,THREE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment