Kotlin is statically typed programming language for modern multi-platform applications. It is also
100% interoperable with
Android. Furthermore, it allows for concise, and null-safe codes.
- Compile and Run Kotlin codes without using an IDE
IDEscompile and run
Kotlincodes by actually doing them manually yourself.
- Create a Maven project for Kotlin
Create and use Maven as you would for Java projects with just few changes to your pom.xml.
- Using Kotlin in Java codes
Yes, you could port existing modules written in
Kotlinand 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 less 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 on 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
- @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 written in Kotlin using Spring