Skip to content

Instantly share code, notes, and snippets.

@Shounaks
Last active February 24, 2024 15:41
Show Gist options
  • Save Shounaks/031c9013fc1afbdc0eaea01c2fa268d5 to your computer and use it in GitHub Desktop.
Save Shounaks/031c9013fc1afbdc0eaea01c2fa268d5 to your computer and use it in GitHub Desktop.
Java Code to test gist
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