/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public actual inline fun println(message: Any?) {
    System.out.println(message)
}

출처: 초보자를 위한 코틀린(Kotlin) 200제 / 엄민석 지음 | 정보문화사 | 2018년 05월 20일 출간

package com.practice016

fun main(args: Array<String>): Unit
{
	val num: Int
	num = 15

	println(
			num + 7 * 3
	)	// 한문장이다, 출력: 36
}

 

출력

36

print 문(출력), println 문( 출력, 개행)는 괄호() 인식하여 내부 값을 출력 한다.

/** Prints the given [message] and the line separator to the standard output stream. */
@kotlin.internal.InlineOnly
public actual inline fun println(message: Any?) {
    System.out.println(message)
}

+ Recent posts