Last active
August 29, 2015 14:15
-
-
Save peschwa/ed6bc57c8cf9d41650b9 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
$ cat Main.java | |
public class Main { | |
public String foo(int[][] bar) { | |
return "first dim length: " + bar.length + "\nsecond dim length: " + bar[0].length; | |
} | |
} | |
psch@hack:~/rakudo/rakudo/install/bin$ CLASSPATH=$PWD ./perl6-j -e'use Main:from<Java>; my $m = Main.new; say $m.foo([[1,2],[3,4],[5,6]])' | |
first dim length: 3 | |
second dim length: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment