Articles on Trending Technologies

Technical articles with clear explanations and examples

Java Program to fill elements in a float array

Nancy Den
Nancy Den
Updated on 10-Feb-2025 481 Views

In this article, we will learn how to fill elements in a float array in Java. The Arrays.fill() method is used to assign a specified value to each element of the array. Array fill() method The Arrays.fill() method in Java sets all elements of an array to a given value, making it useful for quickly initializing or resetting arrays. The Arrays.fill() method works with various data types like int, char, double, and boolean. It makes it easy to fill arrays with a default or specific value. Syntax Arrays.fill(array, value)Arrays.fill(array, start, end, value) ...

Read More

Java ResultSetMetaData getPercision() method with example

Rishi Raj
Rishi Raj
Updated on 10-Feb-2025 520 Views

In this article, we will learn how to retrieve the size of a specified column in a ResultSet object using the getPrecision() method of the ResultSetMetaData interface in JDBC. What does getPrecision() in ResultSetMetaData do? The getPercision() method of the ResultSetMetaData (interface) retrieves the size of the specified column in the current ResultSet object. This method accepts an integer value representing the index of a column and, returns an integer value representing the size of the given column. Steps to get the ResultSetMetaData object To get the ResultSetMetaData object, you need to − Step 1. Register ...

Read More

How Does A GPS Tracking Software Work?

David Layzelle
David Layzelle
Updated on 07-Feb-2025 229 Views

Satellite-based tracking is an essential feature of many products and services in today’s increasingly connected world. This kind of tracking allows users to effectively follow devices as they move around on a global scale, and have up-to-the-second information on their position. But how does this innovative and powerful tracking system work, and how does its software play a key role in it? GPS Overview The Global Positioning System (GPS) is a feat of modern-day technology that accurately provides the position of a tracked item regardless of the weather, at any time of day or night. Run and owned by the ...

Read More

How to detect device is Android phone or Android tablet?

Azhar
Azhar
Updated on 07-Feb-2025 3K+ Views

In this article we will see, how we can detect the device is an Android phone or Android tablet. Here are the following steps for it.Detecting device is Android phone or Android tablet The following are the steps tp detect device is Android phone or Android tablet:Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml.   Step 3 − Add the following code to src/MainActivity.java import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.os.Bundle; import ...

Read More

Most Asked Problems on Queue Data Structure in Programming Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 853 Views

A Queue is the data structure used to store and manage the data in a specific order by following the principle of First In First Out (FIFO). The article "Most Asked Problems on Queue Data Structure in Programming Interviews" benefits you by providing good examples of every problem of the tree. It provides the problems from the basic to the hard level. It covers the core and important problems of Queue.Here is the list of queue problems to excel in the ...

Read More

Most Asked Problems on Recursion Algorithm in Coding Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 438 Views

Recursion Algorithm in Data Structure and Algorithms is used to call the function by itself. The article "Most Asked Problems on Recursion Algorithm in Coding Interviews" benefits you by providing good examples of every problem of the recursion. It provides the problems from the basic to the hard level. It covers the core and important problems of the recursion algorithm. The following are the main problems with the recursion algorithm − Easy Recursion Problems Print Pattern Recursively ...

Read More

Top 50 Array Coding Problems for Programming Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 4K+ Views

An array is a linear data structure that stores the data on contiguous memory locations. In this article, we will discuss the most common and popular problems of arrays in Data Structures and Algorithms. We are covering basic to advanced-level problems which will help you to learn the whole concept in a structured manner. Here is the list of problems that have been asked in programming interviews − Easy Array Problems Following are the easy array problems − ...

Read More

Most Asked Problems on Stack Data Structure Asked in SDE Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 813 Views

A Stack is the linear data structure used to store the elements that are inserted and removed by following the principle of Last In First Out (LIFO). The article "Most Asked Problems on Stack Data Structure Asked in SDE Interviews" covers all the problems topic-wise and includes the industry level and important questions from the interview perspective. Here are the important stack problems of Data Structure and Algorithms − Easy Stack Problems Parenthesis ...

Read More

Top 50 Problems on Linked Lists Data Structure Asked in Coding Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 1K+ Views

Linked Lists is the linear data structure that stores the data in the node. In this article, we will discuss the most common and popular problems of linked lists in Data Structures and Algorithms. We are covering basic to advanced-level problems which will help you to learn the whole concept in a structured manner. The following are the most important and best problems on linked lists − Easy LL Problems Print the Middle of a Given Linked ...

Read More

Top 50 Problems on Matrix/Grid Data Structure Asked in Programming Interviews

Yash Shri
Yash Shri
Updated on 06-Feb-2025 760 Views

The matrix or grid data structure is the mix of two or more linear structures. In this sheet, you will find the important and industry-level problems. It will help you clear the programming interviews. This coding problem is organized from a basic level to an advanced level. Following is the range of problems on a matrix in Data Structure and Algorithms − Easy Matrix Problems Check if a Given Matrix is a Magic Square ...

Read More
Showing 31341–31350 of 61,297 articles
Advertisements