Created
January 21, 2018 04:32
-
-
Save bradtaniguchi/4294fec256e89b03ebc0d0672e9b3bb7 to your computer and use it in GitHub Desktop.
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
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