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

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.

主站蜘蛛池模板: 山阳县| 新巴尔虎左旗| 中西区| 嘉兴市| 梅河口市| 宁波市| 周至县| 邳州市| 临泉县| 冕宁县| 镇远县| 广安市| 乐平市| 原阳县| 措勤县| 克东县| 惠来县| 驻马店市| 吉安县| 琼中| 建水县| 田阳县| 曲阜市| 故城县| 雷波县| 武冈市| 黑河市| 正镶白旗| 江口县| 南江县| 长葛市| 金沙县| 延长县| 房山区| 元谋县| 滦南县| 永丰县| 荃湾区| 广宁县| 宽甸| 游戏|