因此,程序成功运行,只是当满足while循环的终止条件时,它将在显示结束程序的消息对话框之前发送最后一个JOptionPane输入对话框,其中输入对话框完全不会完成任何操作。dDice[i]= new Dice(); dDice[i].roll(); while\n You made "+numberOfRolls+" s
interestRate=kbd.nextInt()/100; int currentBal=startBal; System.out.println("It will take "+years+" years to double your investment.");}请输入一个整数,表示初始投资的整个美元价值:$