官术网_书友最值得收藏!

Summary

This chapter covered a lot of Java syntax—things you need to learn to be able to tackle the more advanced topics. You'll find yourself using these techniques in just about every Java application you write.

We started out by controlling the flow of the program using conditional statements such as if, else if, else, and switch statements. We then moved on to the different loops that can be used to perform repetitive tasks. After this, we looked at how to provide values during runtime using command-line arguments. This is one way to pass inputs to your Java applications. Every example in this chapter created a class, but we have not yet done much with these classes.

In the next chapter, you'll learn about classes, methods, and object-oriented programming, and how you can do a lot more with classes.

主站蜘蛛池模板: 吴桥县| 桃园市| 万全县| 五莲县| 丹阳市| 泽普县| 太康县| 建平县| 元江| 万安县| 大理市| 阿尔山市| 贵南县| 嘉兴市| 乌苏市| 昌图县| 永顺县| 湘西| 平阳县| 华安县| 遵化市| 萝北县| 白银市| 衡山县| 莱阳市| 安远县| 南雄市| 修武县| 江都市| 交口县| 丰镇市| 梨树县| 日土县| 郁南县| 荥阳市| 阜新市| 和顺县| 福建省| 景谷| 崇州市| 台安县|