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는 다 맞게 되있는데

어디가 틀린건가요 ㅠ