Skip to content

Instantly share code, notes, and snippets.

@bradtaniguchi
Created January 21, 2018 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradtaniguchi/4294fec256e89b03ebc0d0672e9b3bb7 to your computer and use it in GitHub Desktop.
Save bradtaniguchi/4294fec256e89b03ebc0d0672e9b3bb7 to your computer and use it in GitHub Desktop.
class HelloWorld
{
// arguments are passed using the text field below this editor
public static void main(String[] args)
{
OtherClass myObject = new OtherClass("Hello World!");
thisMyClassNow poop = new thisMyClassNow();
System.out.println(myObject);
System.out.println(poop);
}
}
// you can add other public classes to this editor in any order
class OtherClass
{
private String message;
private boolean answer = false;
public OtherClass(String input)
{
message = "Why, " + input + " Isn't this something?";
}
public String toString()
{
return message;
}
}
// well I added public classes to this thang
class thisMyClassNow {
private String me;
public thisMyClassNow() {
this.me = "I am well versed in Bird Law";
}
public String toString() {
return this.me;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment