Skip to content

Instantly share code, notes, and snippets.

Created April 6, 2017 17:33
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 anonymous/d822c3f93844c9d863376c0e8942a558 to your computer and use it in GitHub Desktop.
Save anonymous/d822c3f93844c9d863376c0e8942a558 to your computer and use it in GitHub Desktop.
//*******************************************************************
// Dear CompileJava users,
//
// In an effort to recover costs for hosting and development of a new
// site (stay tuned!) I ran a two-week advertising experiment. After
// hearing your feedback about the type and quality of the ads I have
// chosen to remove them. CompileJava is used widely in educational
// settings and I apologize for any frustration/inconvenience caused.
//
// CompileJava has been operating since 2013 completely free. If you
// find this site useful, or would otherwise like to contribute, then
// please consider making a donation (link in 'More Info' tab).
// Thank you for your patience, understanding, and continued support.
//
// Most sincerely, Z.
//*******************************************************************
import java.lang.Math; // headers MUST be above the first class
// one class needs to have a main() method
public class HelloWorld
{
// arguments are passed using the text field below this editor
public static void main(String[] args)
{
System.out.println("Test");
int hexNumber = 047;
System.out.println("Value is " + hexNumber);
}
}
// you can add other public classes to this editor in any order
public 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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment