Skip to content

Instantly share code, notes, and snippets.

@davidB davidB/HelloWorld.java
Last active Oct 13, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.