23 lines
372 B
Plaintext
23 lines
372 B
Plaintext
/* NetRexx */
|
|
options replace format comments java crossref savelog symbols binary
|
|
|
|
ia = int[]
|
|
ia = [ 2, 4, 3, 1, 2, -1, 0, -2 ]
|
|
|
|
display(ia)
|
|
Arrays.sort(ia)
|
|
display(ia)
|
|
|
|
-- Display results
|
|
method display(in = int[]) public static
|
|
|
|
sorted = Rexx('')
|
|
|
|
loop ix = 0 for in.length
|
|
sorted = sorted || Rexx(in[ix]).right(4)
|
|
end ix
|
|
|
|
say sorted.strip('t')
|
|
|
|
return
|