Skip to content

Instantly share code, notes, and snippets.

View tcbuddy's full-sized avatar

TC Buddy tcbuddy

View GitHub Profile
@tcbuddy
tcbuddy / gist:cdfd802f05b99f5e2774692bd78033bb
Created August 24, 2019 06:46 — forked from dodyg/gist:5823756
Kotlin Programming Language Cheat Sheet Part 3

#Control Structures

##If statement

Kotlin if statement should look familiar with other language

fun main(args : Array<String>) {
 val total = 10
@tcbuddy
tcbuddy / gist:52722d496dcb9979e8a14bbf48a887d4
Created August 24, 2019 06:45 — forked from dodyg/gist:5616605
Kotlin Programming Language Cheat Sheet Part 2

This is a quick guide to Kotlin programming language. The previous part of this guide is here

#Object Oriented

fun main(args : Array<String>) {
  class local (val x : Int)
  
  val y = local(10)
 println("${y.x}")
@tcbuddy
tcbuddy / gist:27f387c07542c1233ebb0a13f2daec85
Created August 24, 2019 06:42 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.