
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Soumak De has Published 84 Articles

Soumak De
864 Views
In object-oriented programming, the creation of objects is very easy via constructors when the object definitions are simple, but sometimes, it may so happen that the constructors need more variables or functions in order to initialize an object. In such cases, the "builder pattern" comes into picture which helps programmers ... Read More

Soumak De
800 Views
Kotlin is a statistically typed language that runs on JVM. Once a Kotlin file is compiled, it creates a .class file that can be executed on the JVM. In this article, we will see how we can convert a Kotlin source file to a Java source file. In this process, ... Read More

Soumak De
2K+ Views
In this article, we will see how to convert a String to Long in Kotlin using a library function. There are multiple ways to do it. Let's take a couple of examples to demonstrate how it's done.Example - using toLong()toLong() is a function that provides the most convenient way to ... Read More

Soumak De
292 Views
Varargs, also known as "variable arguments" is a new mechanism in Java by which methods in Java can accept zero or multiple number of arguments. Before this mechanism, the only option available to achieve this type of functionality was "method overloading", but that also required multiple lines of boilerplate code.In ... Read More

Soumak De
2K+ Views
In Kotlin, you can easily call another function by just importing the same in the current Kotlin file where your main function is running. Whatever the function we are declaring in a Kotlin file will be compiled into a static method by default, and it will be placed under the ... Read More

Soumak De
5K+ Views
In this article, we will see how we can convert a List to a Map using various options provided by the Kotlin Library.Example: Using associate()The most standard way of converting a list into a map is by using the associate() function. This function takes a list of items as an ... Read More

Soumak De
3K+ Views
Kotlin is based on Java, hence we can use Java-based library functions to delay a function call. In this article, we will be using a Java library function to delay the function call using Timer() and schedule().Exampleimport java.util.Timer import kotlin.concurrent.schedule fun main(args: Array) { // Execution starting ... Read More

Soumak De
311 Views
String is a collection which is implemented using String class. As per the Kotlin documentation, a string can be defined as follows −Class String : Comparable, CharSequenceIn Kotlin, a string is a collection of characters. Strings are immutable in nature which means they are read-only. The length and elements of ... Read More

Soumak De
14K+ Views
Kotlin provides multiple ways to generate a random number. In this article, we will see different ways to generate a random number and access it throughout the program.Example – Using Random classRandom() is an abstract class which generates random numbers with the given conditions. It can be accessed after importing ... Read More

Soumak De
5K+ Views
Sometimes it becomes necessary to access the index of an array. In this article, we will see how we can access the index of an array in Kotlin while using forEach loop.Example: Using forEachIndexed()nstead of using forEach() loop, you can use the forEachIndexed() loop in Kotlin. forEachIndexed is an inline ... Read More