java

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 »

Linear Search( Java Implementation)

Linear search is a very simple search algorithm. In this type of search, a sequential search is made over all items one by one. Every item is checked and if a match is found then that particular item is returned, otherwise the search continues till the end of the data collection. For example, consider an

Linear Search( Java Implementation) Read More »