Skip to content

gdgpisa/KotlinLab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KotlinLab: Samples and Exercises

This repo contains a bunch of basic examples useful to take first steps on Kotlin Programming Language and its features.

It contains:

  1. Hello World
  2. basics: variables, loops, ranges;
  3. functions: how use Kotlin Functions
  4. classes: Kotlin classes, Java class VS Kotlin class
  5. dataClasses: how to use data classes
  6. lambdas: how use lambdas in Kotlin
  7. nullableTypes: how Kotlin handle null variables
  8. exercises: a bunch of simple exercises

Setup ⚙️

You need to install Kotlin and the IntelliJ platform:

Learn 📚

Have Fun 🎉

Usage

You can run the examples in two ways: copy and paste each functions inside REPL or directly running main functions.

REPL

  • Press Shift twice inside IntelliJ and type "Kotlin REPL":

  • write your code inside the console then press Ctrl + Enter :

play main functions

Should You have imported well this project, you can find a little green "play" icon on the left of each main function. Press that button to run main function

Imgur

Other Samples

About

a bunch of basic Kotlin Samples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 89.7%
  • Java 10.3%