Skip to content

Instantly share code, notes, and snippets.

@davidB
Last active October 13, 2015 10:47
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 davidB/4183893 to your computer and use it in GitHub Desktop.
Save davidB/4183893 to your computer and use it in GitHub Desktop.
test uri of gist for run_on_jvm
public class HelloWorld {
public static void main(String args[]) {
String arg0 = args.length > 0 ? args[0] : "";
System.out.println("Hello World ! " + arg0);
}
}
//#repo central m2:http://repo1.maven.org/maven2/
//#from org.scala-lang:scala-library:2.9.2
object HelloWorld2 {
def main(args : Array[String]) {
val arg0 = if (args.length > 0) args(0) else ""
println("Hello World ! " + arg0)
}
}
package lib;
public class MyLib {
public static int twice(int i) {
return i* 2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment