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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -