data class

Kotlin Data Class Tutorial

Introduction and Comparison to JAVA In JAVA when you want to create a simple POJO class , you have to do a lot of ceremony, write getter/setter for all properties, write equal, toString and hashCode function. While the verbosity of it is good in some cases, writing and maintaining such Read more…


Getting Started with Kotlin – Tutorial 4 – Functions

Compared to JAVA, Kotlin has a different syntax when writing functions. Lets take a look at an example and then break down every line to understand it.

In kotlin, to define a function you have to use the fun keyword. After the keyword comes the function name and then the Read more…