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

Single-line comments

As the name implies, these comments span a single line. Single-line comments are started with two backslashes (//). Upon compilation of your program, all characters coming after these slashes are ignored. Consider the following code:

val b: Int = 957 // This is a single line comment
// println(b)

The value held by b is never printed to the console because the function that performs the printing operation has been commented out.

主站蜘蛛池模板: 绥滨县| 定边县| 平远县| 金川县| 新河县| 南皮县| 奈曼旗| 永州市| 山西省| 无棣县| 闽侯县| 怀集县| 垣曲县| 武邑县| 满城县| 阿瓦提县| 荔浦县| 长阳| 白水县| 五莲县| 乐亭县| 伊宁市| 阳朔县| 乳山市| 昆山市| 共和县| 江川县| 德化县| 宜兰市| 赞皇县| 尖扎县| 女性| 曲松县| 皮山县| 黄山市| 富平县| 环江| 镇康县| 凉山| 嘉峪关市| 武邑县|