正在加载图片...
Compound statements r Use braces if the <then> or <else> block has multiple statements if (testscore 70 messageBox. show("You did not pass")i Then block messageBox. show(Try harder next time")i else messageBox. show("You did pass")i Else block message Box. show("Keep up the good work")i C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6-7© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6 - 7 if (testScore < 70) { messageBox.show("You did not pass"); messageBox.show("Try harder next time"); } else { messageBox.show("You did pass"); messageBox.show("Keep up the good work"); } Compound Statements Use braces if the <then> or <else> block has multiple statements. Then Block Else Block
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有