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

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.

主站蜘蛛池模板: 广德县| 黄梅县| 泰和县| 肇东市| 萨嘎县| 特克斯县| 三江| 清原| 于田县| 寻甸| 中卫市| 沈阳市| 凯里市| 中方县| 栖霞市| 陵水| 武鸣县| 兰溪市| 永济市| 甘谷县| 长顺县| 河北省| 江陵县| 吴忠市| 肥乡县| 汉中市| 宜春市| 隆昌县| 平舆县| 敦煌市| 新余市| 江油市| 桃园县| 砀山县| 电白县| 白水县| 长白| 江达县| 贡觉县| 唐海县| 宁城县|