Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.78 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.78 KB

Learing-Kotlin

It's Just a introduction to kotlin.

---------------------

Try Kotlin and practice what you've learned so far. Type your code in the window below, and click the button to run it! https://developer.android.com/training/kotlinplayground

Introduction

> In this program you will create a short Kotlin program that prints a birthday message with a cake and a birthday banner.

Prerequisites

> How to open and edit code in https://developer.android.com/training/kotlinplayground, a browser-based Kotlin programming tool.
> Understand the "Hello world!" program from the Write your first Kotlin program codelab.
> How to use println() to write text to the console of the online Kotlin code editor.

What you will learn

> How to print more complex text from your program.
> How to do basic math in Kotlin and store the results in variables for later use.
> How to create a function to print the same string several times.
> How to create a loop that prints a text snippet multiple times.

What you will build

> You will create a short program that you can use to print birthday messages, a text-based picture of a cake, and a banner.

What you need

> A computer with internet access and a modern web browser, such as the latest version of Chrome or any Browser.

Here is the official documentation for the Kotlin concepts you learned in this codelab.

Defining variables { https://kotlinlang.org/docs/basic-syntax.html#defining-variables }

Comments { https://kotlinlang.org/docs/basic-syntax.html#comments }

Defining functions { https://kotlinlang.org/docs/basic-syntax.html#defining-functions }

repeat statement { https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/repeat.html }