私がしたい唯一のことは、配列(temp_X)をHashSetに入れることですが、HashSetのエラーが発生しました:HashSet(List)に適したコンストラクターが見つかりません
public PSResidualReduction(int Xdisc[][], double[][] pat_cand, int k) {
for (int i = 0; i < Xdisc.length; i++) {
int[] temp_X;
temp_X = new int[Xdisc[0].length];
for (int s = 0; s < Xdisc[0].length; s++) {
temp_X[s] = Xdisc[i][s];
}
HashSet<Integer> temp_XList = new HashSet<Integer>(Arrays.asList(temp_X));
}
}
どうすれば修正できますか?