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 -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -