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

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.

主站蜘蛛池模板: 灌云县| 佛坪县| 汶上县| 修武县| 南宫市| 精河县| 堆龙德庆县| 卢氏县| 安新县| 北票市| 龙口市| 黄梅县| 桓台县| 金寨县| 灵璧县| 阿荣旗| 张家口市| 鸡泽县| 马尔康县| 措勤县| 田阳县| 宁陕县| 卢湾区| 于田县| 星座| 鲜城| 沧州市| 葵青区| 开远市| 开远市| 通州区| 洛宁县| 汽车| 祥云县| 重庆市| 盱眙县| 巴中市| 德格县| 朝阳县| 姜堰市| 古田县|