1.str = JOptionPane.showInputDialog("Please input a integer");
2.n= Integer.parseInt(str);
3. i
5. flag == true;
1.str = JOptionPane.showInputDialog("Please input a integer");
2.n= Integer.parseInt(str);
3. i
5. flag == true
str = JOptionPane.showInputDialog("请输入一个整数");
2.n= Integer.parseInt(str);
3. i<(int)(Math.sqrt(n));
4. n% i == 0;
5. flag == true;
zh_wenqiang是对的