Kotlin in Practice

small projects with kotlin.

Installation

Clone the repository:

git clone https://github.com/michaelrodriguess/kotlin-in-pratice.git

Before you start, make sure you have the following tools installed:

  • Java JDK: Kotlin requires the Java JDK. Check that you have Java installed by running the following command in the terminal:
  java -version

If Java is not installed, download and install it from the official Java website.

  • Kotlin and Kotlinc: Check that Kotlin is installed using:
  kotlinc -version

If Kotlin is not installed, you can download and install it by following the instructions on the official Kotlin website.


ATM simulator

  • Nada ainda pai?

Alphabetical sorting

  • Nada ainda pai?

Is this palindrome

  1. Navigate to the directory is-this-palindrome
  2. Run script to compile code and execute app
# returns 'subi no onibus é um palíndromo'
./is-this-palindrome "subi no onibus"

# returns 'hello não é um palíndromo mano'
./is-this-palindrome "hello"

# returns 'A base do teto desaba é um palíndromo!'
./is-this-palindrome "A base do teto desaba"