Kotlin의 기본적인 구문(Basic syntax)에 대한 정리입니다. 2021.09.03 - [Kotlin] - [Kotlin] 기본적인 구문 - 1 [Kotlin] 기본적인 구문 - 1 Kotlin의 기본적인 구문(Basic syntax)에 대한 정리입니다. 패키지 정의와 imports 방법(Package definition and imports) 기본적으로 Java와 동일하게 패키지명은 소스파일의 맨 위에 작성합니다. package three.. 3edc.tistory.com 조건 표현식(Conditional expressions) fun maxOf(a: Int, b: Int): Int { if (a > b) { return a } else { return b } } Kotlin에서 if를 표현식..