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

Controlling program flow

When writing programs, a scenario that often occurs is one in which we want to control how our program executes. This is necessary if we want to write programs that can make decisions based on conditions and program state. Kotlin possesses a number of structures for doing this, which will be familiar to people who have worked with programming languages in the past, such as if, while, and for constructs. There are also others that may not be familiar to individuals, such as the when construct. In this section, we will take a look at the structures at our disposal for controlling the flow of our program.

主站蜘蛛池模板: 舟山市| 临西县| 平和县| 普兰店市| 汾西县| 新津县| 镇雄县| 台中市| 伊金霍洛旗| 新野县| 郁南县| 岳池县| 昆明市| 习水县| 汶川县| 留坝县| 嘉义县| 长顺县| 邢台县| 榕江县| 黑龙江省| 洛扎县| 千阳县| 昌邑市| 会宁县| 铜梁县| 红桥区| 神农架林区| 旌德县| 德清县| 精河县| 新巴尔虎右旗| 开原市| 全南县| 泸溪县| 遵义市| 武威市| 托里县| 元谋县| 鹤峰县| 星子县|