📅  最后修改于: 2022-03-11 14:59:41.727000             🧑  作者: Mango
public static void printArray(double[] array) {
StringBuilder builder = new StringBuilder();
for (int a = 0; a < array.length; a++) {
builder.append(array[a]).append(" ");
}
JOptionPane.showMessageDialog(null, builder.toString());
}