Kotlin Koans

Kotlin Koans

Author Svetlana Isakova
This tutorial walks you through a series of exercises to get familiar with Kotlin.

Kotlin Koans are a series of exercises to get you familiar with the Kotlin Syntax. Each exercise is created as a failing unit test and your job is to make it pass. You can play with Koans online or offline by cloning the project on GitHub:

  1. Download the Koans by cloning the project from GitHub

    git clone https://github.com/Kotlin/kotlin-koans

  2. Open up the project in IntelliJ IDEA or your favorite editor. Note: If IntelliJ IDEA prompts you to update the Kotlin library, just click yes.

  3. Run a test. Make it pass

    Tests

  4. Repeat for all tests!

The repository has two branches, master which contains the exercises for you to do and resolutions which contains the resolved exercises. Make sure you don't cheat!

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/docs/tutorials/koans.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部