Groovy web console

subscribe to the feed Subscribe
to this
site

test

Published 1 month ago by Behzad
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
String[] testArray1 = ["B", "A", "C"]
println('testArray1 before sort'+testArray1);
//Arrays.sort(testArray1);
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(java.util.Arrays.class, "sort", testArray1);
println('testArray1 after sort sort'+testArray1);