正在加载图片...
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; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有