- Kotlin Programming By Example
- Iyanu Adelekan
- 74字
- 2021-08-27 20:00:09
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.
推薦閱讀
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- 新一代通用視頻編碼H.266/VVC:原理、標準與實現
- Visual C++串口通信技術詳解(第2版)
- iOS應用逆向工程(第2版)
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- 詳解MATLAB圖形繪制技術
- Scala for Machine Learning(Second Edition)
- Learning YARN
- Visual Studio Code 權威指南
- Orchestrating Docker
- Instant jQuery Boilerplate for Plugins
- Java EE 8 and Angular
- Access數據庫應用教程(2010版)
- jQuery Mobile Web Development Essentials(Second Edition)
- 深入理解Zabbix監控系統