Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
Java
9.3K+ articles
Misc
7.8K+ articles
Java - util package
1.6K+ articles
Java Programs
1.5K+ articles
Java-Collections
1.1K+ articles
Java-Arrays
169+ articles
java-stream
142+ articles
Java-List-Programs
57+ articles
Java-Stream-programs
27+ articles
Java-Array-Programs
117+ posts
Recent Articles
Popular Articles
How to Convert InputStream to Byte Array in Java?
Last Updated: 23 July 2025
In Java, input stream refers to an ordered flow of data in the form of bytes. This flow of data can be coming from various resources such as files, network programs, input...
read more
Java
Java Programs
Picked
Java-Array-Programs
Java Program to Convert Byte Array to String
Last Updated: 23 July 2025
A byte is 8 bits of binary data so do byte array is an array of bytes used to store the collection of binary data. There are multiple ways to change byte array to String i...
read more
Java
Java Programs
Java Quiz
Picked
Java-Array-Programs
Java Program to Convert File to a Byte Array
Last Updated: 23 July 2025
Here, we will go through the different ways to convert file to byte array in Java.Note: Keep a check that prior doing anything first. Create a file on the system repositor...
read more
Java
Java Programs
Picked
Java-Array-Programs
Java-Files
Java Program to Convert Hex String to Byte Array
Last Updated: 23 July 2025
Hex String - A Hex String is a combination of the digits 0-9 and characters A-F, just like how a binary string comprises only 0's and 1's. Eg: "245FC" is a hexadecimal str...
read more
Java
Java Programs
Picked
Java-Array-Programs
Java Program to Convert Integer List to Integer Array
Last Updated: 23 July 2025
There are many ways to convert integer List to ArrayList where in this article we will be discussing out 2 approaches as below:Using concept od streams in Java8Using Apach...
read more
Java
Java Programs
Picked
Java-Array-Programs
Java Program to Access All Data as Object Array
Last Updated: 07 November 2022
Java is an object-oriented programming language. Most of the work is done with the help of objects. We know that an array is a collection of the same data type that dynami...
read more
Java
Java Programs
Picked
Java-Array-Programs
Java Program to Print All Unique Subsets in an Array of Subsets Using Bit Manipulation
Last Updated: 21 April 2021
Given an integer array of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets and should return the solution ...
read more
Java
Java-Array-Programs
Java Program to Sort the 2D Array Across Rows
Last Updated: 15 September 2021
This program is used to Sort the 2D array Across rows. We will use the concept of vector to sort each row.VectorVector(): Creates a default vector of the initial capacity ...
read more
Java
Java Programs
Picked
Java-Array-Programs
Java Program to Compute the Sum of Diagonals of a Matrix
Last Updated: 21 May 2025
For a given 2D square matrix of size N*N, our task is to find the sum of elements in the Principal and Secondary diagonals. For example, analyze the following 4 × 4 input ...
read more
Java
Java-Array-Programs
How to Convert JSON Array to String Array in Java?
Last Updated: 23 July 2025
JSON stands for JavaScript Object Notation. It is one of the widely used formats to exchange data by web applications. JSON arrays are almost the same as arrays in JavaScr...
read more
Java
Java Programs
Picked
Java-Array-Programs
Java Program to Find the Normal and Trace of a Matrix
Last Updated: 21 May 2025
In Java, when we work with matrices, there are two main concepts, and these concepts are Trace and Normal of a matrix. In this article, we will learn how to calculate them...
read more
Java
java-basics
Java-Arrays
Java-Array-Programs
Java Program to Minimize the Maximum Element of an Array
Last Updated: 29 May 2021
Given two integers N and K. Create an array of N positive integers such that the sum of all elements of the array is divisible by K and the maximum element in the array is...
read more
Java
Technical Scripter
Java Programs
Technical Scripter 2020
Java-Array-Programs
Java Program to Convert Byte Array to Hex String
Last Updated: 23 July 2025
Byte Array - A Java Byte Array is an array used to store byte data types only. The default value of each element of the byte array is 0.Hex String - A Hex String is a comb...
read more
Java
Java Programs
Java-Array-Programs
Remove One Array From Another Array in Java
Last Updated: 28 January 2021
For removing one array from another array in java we will use the removeAll() method. This will remove all the elements of the array1 from array2 if we call removeAll() fu...
read more
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
Java-Array-Programs
Convert String to Byte Array in Java Using getBytes(Charset) Method
Last Updated: 23 July 2025
To convert a string to a byte array, we use the getBytes(Charset) method In Java that transforms the string into a sequence of bytes based on a specified character encodin...
read more
Java
Java Programs
Picked
Java-Strings
Java-Arrays
Java-Array-Programs
Java-String-Programs
1
2
3
4
5
6
7
8
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !