-1
@ D私はこのコードを実行すると、私は "Trida"クラス復帰[15db9742
public class Trida {
public double[] append(double[] pole1, double[] pole2){
int length = pole1.length + pole2.length;
double[] pole3 = new double[length];
for (int i = 0; i < pole1.length; i++){
pole3[i] = pole1[i];
pole3[i + 1] = pole2[i];
}
return pole3;
}
public static void main(String[] args) {
Trida trida = new Trida();
double[] pole1 = {1.0, 3.0};
double[] pole2 = {2.0, 4.0};
System.out.println(trida.append(pole1, pole2));
}
という名前の単純なクラスを持っていると、端末は[15db9742 @ Dを言ったが、私はそのように印刷フィールドをしたい - [1.0、2.0 、3.0、4.0] 私を助けることができますか?
どうもありがとう! – Kos112567
彼のためのいくつかの説明かもしれない? –
@ Kos112567答えを受け入れることを忘れないでください。 –