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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -