Arraysツールクラスの詳細(中)


詳細
public static boolean equals(long[] a,long[] a2);
public static boolean equals(int[] a,int[] a2);
public static boolean equals(short[] a, short[] a2);
public static boolean equals(char[] a, char[] a2);
public static boolean equals(byte[] a, byte[] a2);
public static boolean equals(boolean[] a, boolean[] a2);

public static boolean equals(double[] a, double[] a2);

public static boolean equals(float[] a,float[] a2);

public static boolean equals(Object[] a, Object[] a2);							 

2つの指定した配列が互いに等しい場合はtrueを返します.2つの配列が同じ数の要素を含み、2つの配列のすべての対応する要素ペアが等しい場合、この2つの配列は等しいと考えられます.すなわち、2つの配列が同じ順序で同じ要素を含む場合、2つの配列は等しい.さらに,両方の配列参照がnullである場合,それらは等しいと考えられる.
 
public static void fill(long[] a, long val)
public static void fill(long[] a,int fromIndex, int toIndex,long val)

public static void fill(int[] a, int val)
public static void fill(int[] a,int fromIndex, int toIndex,int val)

public static void fill(short[] a, short val)
public static void fill(short[] a,int fromIndex, int toIndex,short val)

public static void fill(char[] a, char val)
public static void fill(char[] a,int fromIndex, int toIndex,char val)

public static void fill(byte[] a, byte val)
public static void fill(byte[] a,int fromIndex, int toIndex,byte val)

public static void fill(boolean[] a, boolean val)
public static void fill(boolean[] a,int fromIndex, int toIndex,boolean val)

public static void fill(double[] a, double val)
public static void fill(double[] a,int fromIndex, int toIndex,double val)

public static void fill(float[] a, float val)
public static void fill(float[] a,int fromIndex, int toIndex,float val)

public static void fill(Object [] a, Object  val)
public static void fill(Object [] a,int fromIndex, int toIndex,Object  val)
 

指定した値は、指定したタイプの配列の指定範囲内の各要素に割り当てられます.埋め込み範囲は、インデックスfromIndex(含む)からインデックスtoIndex(含まない)までです.(fromIndex=toIndexの場合、埋め込み範囲は空です.)
パラメータ:a-入力する配列fromIndex-指定した値で入力する最初の要素のインデックス(含む)toIndex-指定した値で入力する最後の要素のインデックス(含まない)val-配列のすべての要素に格納する値