= #JxnPortable\docs\programmer_examples\ImportStaticDemo.jxn

a = { 5., 13., 3., 2., 7. }
 = { 5.0, 13.0, 3.0, 2.0, 7.0 } (double[5])
b = Arrays.copyOf( a, length a )
 = { 5.0, 13.0, 3.0, 2.0, 7.0 } (double[5])
! Note: "Arrays.methodName(.)" can be used instead of "java.util.Arrays.methodName(.)"
!       because of an implicit "#import java.util.*" during jxn initialization
set( b, 1, 11. )  ! <= calls JxnUtilities.set( double[], int, double )
 = { 5.0, 11.0, 3.0, 2.0, 7.0 } (double[5])
Arrays.sort b
 = null
Arrays.toString b
 = [2.0, 3.0, 5.0, 7.0, 11.0] (java.lang.String)
!
! the following command adds "java.util.Arrays" to the list of classes automatically searched for static methods:
! ( on initialization class java.lang.Math and class JxnUtilities are added to the static method class list )
#import static java.util.Arrays
 = 1. added, View > StaticMethodClasses shows all (java.lang.String)
! now even the "Arrays." can be omitted
! => static methods of java.util.Arrays (e.g. deepToString(String) ) are found without explicit classname
toString a
 = [5.0, 13.0, 3.0, 2.0, 7.0] (java.lang.String)
!
c = { 1., a, b }
 = { 1.0, [D@16f77cc, [D@aa6d82 } (java.lang.Object[3])
toString c
 = [1.0, [D@16f77cc, [D@aa6d82] (java.lang.String)
deepToString c
 = [1.0, [5.0, 13.0, 3.0, 2.0, 7.0], [2.0, 3.0, 5.0, 7.0, 11.0]] (java.lang.String)