An open API service indexing awesome lists of open source software.

https://github.com/xpdojo/kotlin

Kotlin is designed to interoperate fully with Java, and the JVM version of Kotlin's standard library depends on the Java Class Library, but type inference allows its syntax to be more concise.
https://github.com/xpdojo/kotlin

android gradle kotlin springboot

Last synced: about 1 month ago
JSON representation

Kotlin is designed to interoperate fully with Java, and the JVM version of Kotlin's standard library depends on the Java Class Library, but type inference allows its syntax to be more concise.

Awesome Lists containing this project

README

          

# Kotlin

## 설치

```sh
sdk list kotlin
// 1.7.10 ...
sdk install kotlin 1.7.10
```

```sh
kotlin -version
// Kotlin version 1.7.10-release-333 (JRE 11.0.16+8-post-Ubuntu-0ubuntu122.04)
```

## 실행

Gradle과 같은 빌드 도구 없이 스크립트를 실행할 수 있다.

```kotlin
// assert.kts
val a = 1
val b = 2
assert(a != b)
```

```sh
kotlinc -script assert.kts
```

## 참조

- [Kotlin command-line compiler: Run scripts](https://kotlinlang.org/docs/command-line.html#run-scripts) - Kotlin 공식 문서