int data;
int sum = 0;
do {
String dataString = JOptionPane.showInputDialog(null,
"Enter an int value, the program exits if the input is 0",
"TestDo, JoptionPane.QUESTION_MASSAGE);
>
sum +=data;
} while (data !=0);
JOptionPane.showMessageDialog(null, "The sum is " + sum,
"TestDo",JOptionPlane.INFORMATION_MESSAGE);
Sysem.exit(0);
위에 메인 메소드랑 import는 다 맞게 되있는데
어디가 틀린건가요 ㅠ
여기 스윙 아무도모름 국비학원충들이라 스프링아니면 ㅅㄱ요
멀라잉
스윙 좀 건드려는 봤는데, 함수를 다 외워서 쓰는 것도 아니고.. 에러 없으면 모르지
코드도 있다 말았고