How to use java.util.Arrays

后端 未结 5 1526
挽巷
挽巷 2021-01-02 09:03

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

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 09:46

    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

提交回复
热议问题