Java - Medium Articles
EditText is an android widget. It is a User Interface element used for entering and modifying data. It returns data in String format. Masking refers… Read More
Processing is an open-source programming language and development environment that is built on top of the Java programming language. It is specifically designed for artists,… Read More
Given an array arr[] of N integers and an integer K, our task is to find the length of the longest subarray such that for… Read More
Given a binary tree, the task is to print all the nodes having exactly one child. Print “-1” if no such node exists.Examples:  Input: 2… Read More
Introduction : Often, there is a need to initiate an Android app with an already existing database. This is called prepopulating a database. In this… Read More
A character with a backslash (\) just before it is an escape sequence or escape character. We use escape characters to perform some specific task.… Read More
Android Spinner is a view similar to the dropdown list which is used to select one option from the list of options. It provides an… Read More
Given a string str, the task is to check whether the string is a valid identifier or not using the Regular Expression. The valid rules for… Read More
Recycler View allows us to show a list of items but to convert our list into the bulleted list we have to do some extra… Read More
Given a string str which consists of only lowercase letters and an array arr[][] that represents range queries on the given string str where each… Read More
Given an array a containing positions of N houses, and an array b containing positions of M radio towers, each placed along a horizontal line,… Read More
Given N points in a plane in the form of 2D array such that every row consist of two integer L and R where L… Read More
Screen Orientation, also known as screen rotation, is the attribute of activity element in android. When screen orientation change from one state to other, it… Read More
In multithreading, the shared entity mostly leads to a problem when concurrency is incorporated. A shared entity such as, mutable object or variable, might be… Read More
Given a map in Java, the task is to find out the entry in this map with the highest key. Examples: Input: Map = {ABC… Read More
Pre-requisite: How to open a Camera through Intent and capture an image In this article, we will try to send the captured image (from this… Read More
This article explains how to perform JDBC operation using a Model object and a Singleton connection class from a MySQL database . JDBC is an… Read More
Given an unsorted array arr[] and an integer K, the task is to count the occurrences of K in the given array using the Divide… Read More
Prerequisites: String Compact String is one of the performance enhancements introduced in the JVM as part of JDK 9. Till JDK 8, whenever we create… Read More
Given a bi-directed weighted (positive) graph without self-loops, the task is to generate the minimum spanning tree of the graph.Examples:   Input: N = 9, E… Read More