In order to Get Started with Kotlin, first, you need to install the latest version of IntelliJ IDEA. So, choose the Community download and save the exe file. After that, click on the exe file that you have just downloaded and follow the installation instruction. Once, it is installed, you can open the IntelliJ IDEA. The following interface will be shown …
Features of Kotlin to Build Better Apps
In general, there are many features of Kotlin that will motivate you to adopt Kotlin as the programming language in Android development. Evidently, in 2017 Google announced its support of Kotlin as the language to develop Android apps. Since then along with Java Kotlin has been used in Android development. In fact, you need to …
Interfaces in Java
Interfaces in Java provide us a way to declare the functionality that can be implemented by different classes in their own way. In general, an interface represents a contract. Basically, it is a contract between different groups of people in the software industry where the groups want to agree on how the software should behave. Therefore, the …
Creating Arrays in Java
In this article, I will explain Creating Arrays in Java. To begin with, let us first understand what an array is. Basically, an array represents a collection of elements. So, an array can contain multiple values of the same data type. Additionally, all elements in an array occupy the contiguous locations in memory. Further, all …
Examples of For-each Loop in Java
This article demonstrates several Examples of For-each Loop in Java. In fact, the use of for-each loop makes traversing the elements of a collection much simplified. The following code shows a simple example of displaying the elements of an array using the for-each loop. As can be seen, there is no loop control variable to …
Method Overloading Using Java
This article demonstrates Method-Overloading Using Java. Earlier, I have explained how to create user-defined methods. Accordingly, a class can have user-defined methods which are all uniquely named. In other words, in a particular class, each method has a unique name. However, this rule has an exception. In other words, a class may allow two or more methods …
Flow Control Using Loops in Java
In this article, I will explain Flow Control Using Loops in Java. In general, the statements of a program code execute sequentially. However, there are occasions when this sequential course of action needs to be altered. For instance, suppose we want to repeat certain statements till a particular condition remains satisfied. In that case, we …
How to Create User-Defined Methods in Java
Basically, User-Defined Methods in Java help us creating a program in manageable segments. Basically, a method is a piece of code that performs awell-defined task and also has a name. Therefore, a method allow us to perform the same task in a program repeatedly without writing the code again. Further, the use of methods in …
Examples of Decision Making in Java
This article explains the concept of Examples of Decision Making in Java. Basically, decision-making in a code is required whenever there is two or more course of action depending on a condition. So, in Java, we can perform decision-making using the if…else statement. Also, we can also use the ternary operator in Java if we need to choose one …
Understanding HTTP Requests and Responses
This article explains HTTP Requests and Responses. In order to get data from another server HTTP Requests are made. Basically, these requests occur between API endpoints. API End Points Generally, two servers interact with each other using web services. So, one of the servers is making a request for a resource. While the other one …