Response- Processing the selection r To determine which button the user clicked, we write int selection yesNoBox prompt("Click a button")i switch(selection) I case Re sponse Box. YES: messageBox. show("Yes button was clicked")i break; case ResponseBox NO messageBox. show("No button was clicked")i break C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 7-19© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 7 - 19 ResponseBox – Processing the Selection To determine which button the user clicked, we write int selection = yesNoBox.prompt("Click a button"); switch (selection) { case ResponseBox.YES: messageBox.show("Yes button was clicked"); break; case ResponseBox.NO: messageBox.show("No button was clicked"); break; }