Java do-while Loop

In this article, you will learn about the do-while loop and how to create do-while loop in Java programming. 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 do-while Loop Java do-while loop is an exit-control loop, which means unlike while loop, […]

Java do-while Loop Read More »

Java while Loop

In this article, you will learn about while loop and how to create while loop in Java programming. 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 While Loop The while loop executes the block of code as long as a

Java while Loop Read More »

Java switch Statement

In this article, you will learn to use switch statement to control the flow of your program’s execution. Java switch Statement When we want to execute a particular block of code/statements among many blocks we can use switch statement. Syntax // switch statement switch(expression/variable) { // case statements // values must be of same type

Java switch Statement Read More »

Kotlin when Expression

In this article, you will learn about when expression in Kotlin with the help of various examples. In Kotlin, when replaces the switch operator of other languages like Java, C, C++, etc. when matches its argument against all branches sequentially until some branch condition is satisfied. After the first match found, it reaches to end of the

Kotlin when Expression Read More »

Kotlin if Expression

In this article, you will learn to use if expression in Kotlin with the help of examples. There are different types of if expression in Kotlin: if-else expression if-else-if ladder expression nested if expression Traditional if Statement if statement The if statement checks the given condition. If the condition evaluates to be true then the

Kotlin if Expression Read More »

Kotlin Hello World Program

In this article, We will learn how to start with Kotlin Programming and will write a small print “Hello World” program. Steps: IDE (Java Editor) Installation Writing Hello World Kotlin program. Kotlin Editor To write your Kotlin programs, you will need a text editor. There are different IDEs (Integrated Development Environment) available in the market

Kotlin Hello World Program Read More »

Java if…else

In this article, you will learn to use selection statements if, if-else, if-else-if to control the flow of execution of a program based on certain conditions. Selection statements also known as conditional statements allows a program to test several conditions, and execute instructions based on which condition is true. The conditional statements: if statement if-else

Java if…else Read More »

Getting started with Java

In this article, We will learn how to start with Java Programming and will write a small print “Hello World” program. Steps: IDE (Java Editor) installation Writing Hello World Java program. Java Editor To write Java programs, you will need a text editor. There are different IDEs (Integrated Development Environment) available in the market like

Getting started with Java Read More »

Android working with observable data objects using DataBinding

Observable Data Object refers to the capability of an object to notify others(listeners) about the changes in its data. The data binding library allows us to make objects, fields, or collections observable. Any plain-old object can be used for data binding, but modifying the object doesn’t automatically cause the UI to update. Data binding can

Android working with observable data objects using DataBinding Read More »

Android Data Binding In RecyclerView

In the previous article, we have learned about the Basics of dataBinding.Now In this android data binding RecyclerView tutorial, I’m going to show how to implement data binding in Android RecyclerView. Data binding binds the UI with data sources and reduces lines of code. Using DataBinding in an adapter class keeps the code to very

Android Data Binding In RecyclerView Read More »