Last active
October 13, 2015 10:47
-
-
Save davidB/4183893 to your computer and use it in GitHub Desktop.
test uri of gist for run_on_jvm
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
public class HelloWorld { | |
public static void main(String args[]) { | |
String arg0 = args.length > 0 ? args[0] : ""; | |
System.out.println("Hello World ! " + arg0); | |
} | |
} |
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
//#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) | |
} | |
} |
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
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