I\'m trying to use the java.util.Arrays class in JavaSE 6 but not sure how i would implement it? on an array that I have generated?
before the start of the class i
You have not provided enough information about what you are trying to do. java.util.Arrays
only exposes static methods, so you simply pass in your array and whatever other params are necessary for the particular method you are calling. For instance Arrays.fill(myarray,true)
would fill a boolean array with the value true
.
Here is the javadoc for java.util.Arrays