본문 바로가기

카테고리 없음

#2 Kotlin Hello World: Write your first code in Kotlin and Run it in INTELLIJ IDEA

 

fun main(args: Array<String>){
    println("Hello world!")
}

 

새프로젝트 만들기 

file => new => project

Java => Kotlin/JVM => next => project name 작성 => project loaction 작성 => finish

 

프로젝트 만든 후 실행

Run myfirstfile.kt 에서 오른쪽 위에 녹색 삼각형 클릭하면 실행됨