Convention allows a programmer to use a function with an operator, for example, we can use a plus sign to invoke the plusAssign method in […]
Include Java within Kotlin
Hello and welcome back to the Kotlin bookkeeping project. In this chapter, we will create a java class which will read the number of students […]
Kotlin Generic and Interface demo
Use Interface as a blueprint with methods and properties that need to be implemented by the concrete class. We use generic type in a class […]
Kotlin Enum class demo
In this chapter, we will continue to develop the software which will calculate the total amount of all the students in a class that need […]
Singleton, class inheritance in Kotlin
A singleton object will not allow you to create an instance from it, singleton is often used by the Kotlin programmer as a single object […]
Use custom setter and getter method in a singleton object
In this article, we will continue to develop the previous book price calculator by introducing the custom getter and setter method which will help us […]
Use a Singleton object to calculate the total price
In the previous article, we have created the FilterBook object to calculate the total price for the Kotlin programming language related books. In this chapter, […]
Kotlin Class Demo
Create a Kotlin class to filter out unwanted programming books and calculate the total price of the Kotlin related book. Hello and welcome back, in […]
Count the pair of duplicate number with Kotlin
In this example, we will create a function with Kotlin programming language which will return the total number of duplicate pair of numbers within a […]