Skip to content

Instantly share code, notes, and snippets.

@peschwa
Last active August 29, 2015 14:15
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 peschwa/ed6bc57c8cf9d41650b9 to your computer and use it in GitHub Desktop.
Save peschwa/ed6bc57c8cf9d41650b9 to your computer and use it in GitHub Desktop.
$ 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