Java Class and Objects

In this article, you will be introduced with the basic OOPs concept i.e. Classes and Objects and how you can create classes and objects in your Java program. Java Objects Object refers to an entity that has state and behavior.  State: represents the data (properties) of an object. Behavior: represents the behavior (functionality) of an […]

Java Class and Objects Read More »

Java continue Statement

In this article, you will learn how to use continue construct and continue labels in Java. Sometimes it is useful to force an early iteration of a loop. That is, you might want to continue running the loop but stop processing the remaining code in its body for this particular iteration. In such case we

Java continue Statement Read More »

Kotlin continue

In this article, you will learn how to use continue construct and continue labels in Kotlin. Sometimes it is useful to force an early iteration of a loop. That is, you might want to continue running the loop but stop processing the remaining code in its body for this particular iteration. In such case we

Kotlin continue Read More »

Java break Statement

In this tutorial, you will learn to use break to terminate a loop. Also, you will learn about break labels. Java break example The break is a loop control statement which is used to terminate the loop. Basically break statements are used in the situations when we are not sure about the actual number of

Java break Statement Read More »

Kotlin break

In this tutorial, you will learn to use break to terminate a loop. Also, you will learn about break labels. Kotlin break example The break is a loop control statement which is used to terminate the loop. Basically break statements are used in the situations when we are not sure about the actual number of

Kotlin break Read More »

Kotlin for Loop

The for loop in Kotlin iterates through anything that provides an iterator. In this article, you learn to create for loop (with the help of examples). Syntax The syntax of for loop in Kotlin is: for (item in collection) { // body of loop } In Kotlin, for loop is used to iterate through the following because all

Kotlin for Loop Read More »

Java for-each Loop

In this article, you will learn about the for-each loop and how to create for-each loop in Java programming. Apart from the standard for loop, Java provides you another form of for loop to work with arrays or collection, known as the enhanced for loop. To learn more about standard for loop in Java visit

Java for-each Loop Read More »

Java for Loop

In this article, you will learn about how to create for loop in Java programming with the help of examples. Loops in Java are used when we want to execute a block of statements repeatedly until a specific condition is met(condition is false). Java for Loop A for loop is used to repeat a specific block

Java for Loop Read More »

Kotlin do-while Loop

In this article, you will learn about the do-while loop and how to create do-while loop in Kotlin programming. Loops in Kotlin are used when we want to execute a block of statements repeatedly until a specific condition is met(condition is false). Kotlin do-while Loop Kotlin’s do-while loop is an exit-control loop, which means unlike while loop, the do-while

Kotlin do-while Loop Read More »

Kotlin while Loop

In this article, you will learn about while loop and how to create while loop in Kotlin programming. Loops in Kotlin are used when we want to execute a block of statements repeatedly until a specific condition is met(condition is false). Kotlin While Loop The while loop executes the block of code as long as a specified

Kotlin while Loop Read More »