Last Updated on
Kotlin is a statically typed programming language for modern multi-platform applications. It is also 100% interoperable with Java and Android. Furthermore, it allows for concise, and null-safe codes.
- Compile and Run Kotlin codes without using an IDE
Learn how IDEs compile and run Kotlin codes by actually doing them yourself.
- Create a Maven project for Kotlin
Create and use Maven as you would for Java projects with just a few changes to your pom.xml.
- Using Kotlin in Java codes
Yes, you can port existing modules written in Java to Kotlin and use them as if nothing has changed!
- Kotlin val and var keywords
You need to know when a variable is mutable and immutable.
- Singletons in Kotlin
Write fewer codes when writing singleton classes with Kotlin.
- Overloading constructors
Learn how to overload constructors! It ain’t hard.
- Static fields and methods
Kotlin has them too!
- Use enum in Kotlin
Some examples of how to use
- Extension Functions
Add new properties and behaviors to your class without changing its class definition
- Kotlin Class Delegation
Learn how to use Kotlin support for the Delegation pattern
- In progress
- Read text files from classpath
More often than not, applications read text files from somewhere specially from the classpath.
- Lists, lists, lists!
There is no way you could avoid using lists in OOP. With Kotlin, it is easier to create them.
- Convert comma-separated String to a list
Convert “a,b,c” to a list with items “a”, “b”, and “c”.
- Check if value exists in a list
There is a better way than looping the list, getting each item and checking its value.
- Check if key exists in a map
Find something in a map by keys
Java 8 Date/Time API
- Using Java 8 Date and Time API in Kotlin
What Java has, Kotlin has too!
- @Autowired Kotlin codes
How to autowire Kotlin stuff in Spring
- Spring Boot and Kotlin
Create a Kotlin-based Spring Boot applications
- Spring Boot, Spring MVC, and Kotlin
Web applications are written in Kotlin using Spring