loops - Do/While statements in Java -
is there way can make do/while statement this?
do { joptionpane.showconfirmdialog(null, "do wish continue?"); } while (answer == yes);
instead of answer == yes, should check if equals joptionpane.no_option or joptionpane.yes_option in case.
also, should having int answer = joptionpane.showconfirmdialog(null,"do wish continue?);
Comments
Post a Comment