java

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 »

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 »

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 »

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 »

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 »

Android Google Map Example

This guide is a quick start to adding a map to an Android app. We are using Android Studio as a development environment. Get the full code from Github Step 1. Create a Google Maps project Follow these steps to create a new app project including a map activity: Start Android Studio. Create a new project.

Android Google Map Example Read More »

Google Places API Example with AutocompleteTextView(Kotlin/Java)

Here is the simple example of Google Places SDK for Android returns place predictions in response to user search queries.As the user types, the autocomplete service returns suggestions for places such as businesses, addresses, latitude, longitude etc. Get the full code from Github     You can add autocompleteTextView  to your app in the following

Google Places API Example with AutocompleteTextView(Kotlin/Java) Read More »