JavaFX Native Array Örneği

1
2
3
4
5
def commaSep:java.lang.String = "one,two,three,four";
def numbers:nativearray of java.lang.String =
        commaSep.split(",");
println("1st: {numbers[0]}");
for(i in numbers) { println("{i}"); }

Output:

1st: one
one
two
three
four

Leave a Reply