Add types of print statements. (#30941)

This commit is contained in:
RILEYCWUOJO
2019-06-28 05:54:38 +00:00
committed by Randell Dawson
parent 253bac3b63
commit 864c0af2f5

View File

@ -58,6 +58,7 @@ fun main(args : Array<String>): Unit {...}
### Print Statement
The println function takes a string as an argument and prints it to the screen. In this case we are printing the string "Hello, World!". Note that string literals are declared using double quotes ```"String"```.
Printing in kotlin can be done in two ways; using "println" function and "print" function. The "println" function prints things on a new line whereas the "print" function prints things on the current line.
If you'd like to know more about Kotlin Syntax and start writing awesome programs you should check the awesome Kotlin Official Documentation: https://kotlinlang.org/docs/reference/