正在加载图片...
Matching else Are(A) and(B) different? if(x< y A Both(A and(B) means if(x < z messageBox. show( Hello)i if(x y e⊥se if(x< z messageBox. show("Good bye") messageBox. show("Hello)i e⊥se messageBox. show("Good bye")i f(x < y (B) if(x< z) messageBox. show("Hello)i else messageBox. show("Good bye")i C 2000 McGraw-Hill troduction to Object-Oriented Programming with Java--Wu Chapter 6-18© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6 - 18 Matching else if (x < y) if (x < z) messageBox.show("Hello"); else messageBox.show("Good bye"); A if (x < y) if (x < z) messageBox.show("Hello"); else messageBox.show("Good bye"); B Are and different? A B if (x < y) { if (x < z) { messageBox.show("Hello"); } else { messageBox.show("Good bye"); } } Both and means… A B
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有