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

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.

主站蜘蛛池模板: 常德市| 互助| 文登市| 四会市| 文化| 陇川县| 浙江省| 阿图什市| 靖远县| 红安县| 徐汇区| 鸡泽县| 四子王旗| 康乐县| 叙永县| 闸北区| 沙湾县| 溆浦县| 榕江县| 大宁县| 贵州省| 云安县| 漳平市| 日喀则市| 定陶县| 延庆县| 田阳县| 黄浦区| 安图县| 屏山县| 衡山县| 金华市| 济南市| 古蔺县| 遂溪县| 元阳县| 惠水县| 修水县| 正安县| 黄平县| 手游|