Kotlin Programs

This page contains the list of Kotlin programs and examples. You can practice these programs/examples to learn Kotlin in-depth.

Kotlin is an open-source statically typed programming language that targets the JVM, Android, JavaScript, and Native. It’s developed by JetBrains.

The Kotlin programs and examples in this page targets the JVM (Java). You need Java installed to run these Kotlin programs/examples.

Kotlin Programs

  1. Kotlin Program to Check Leap Year 
  2. Kotlin Program to Find the Largest of Three Numbers
  3. Kotlin Program to Check Whether an Alphabet is Vowel or Consonant
  4. Kotlin Program to Check Even or Odd Number
  5. Kotlin Program to Swap Two Numbers Without Using Temporary Variable
  6. Kotlin Program to Swap Two Numbers
  7. Kotlin Program to Add Two Integers

Kotlin Examples

  1. Kotlin- Create Class Example
  2. Kotlin - for Loop Examples
  3. Kotlin - while and do-while loop example
  4. Kotlin - if statement example
  5. Kotlin - Nested if Statement Example
  6. Kotlin - if-else Statement Example
  7. Kotlin - if-else-if Statement Example
  8. Kotlin - when Expression Example
  9. Kotlin - break and continue Keyword Example
  10. Kotlin - Nested Class Example
  11. Kotlin - Inner Class Example
  12. Kotlin - Inheritance Example
  13. Kotlin - Abstract Class Example
  14. Kotlin Interface Example
  15. Kotlin Interfaces Inheritance Example
  16. Kotlin - Enum Class Example
  17. Kotlin - Enum Class Implementing Interfaces Example
  18. kotlin - Data Class Example
  19. Kotlin - Array Initialization Example
  20. Kotlin Array Basic Operations
  21. Kotlin - Sorting Arrays Example
  22. Kotlin - Two-Dimensional Arrays Example
  23. Kotlin - Find Array Elements Example

Free Spring Boot Tutorial - 5 Hours Full Course

Watch this course on YouTube at Spring Boot Tutorial | Fee 5 Hours Full Course