📜  Java 代码示例中的循环结构

📅  最后修改于: 2022-03-11 14:52:27.811000             🧑  作者: Mango

代码示例1
numbers = new int[10];
numbersResult = "The resulting numbers inside Do While loop are:\n";
count = 0;
while (count < 10) {
    numbers[count] = (int) (count*8.87);
    numbersResult += "number " + String.valueOf(numbers[count] + "\n");
    count ++;
}
JOptionPane.showMessageDialog(null, numbersResult);