Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
DSA
22.5k+ articles
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Java Programs
1.9k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Arrays
260+ articles
Java Examples
230+ articles
java-lang-reflect-package
120+ articles
Java-Array-Programs
100+ articles
Java-Arrays
160+ posts
Popular Articles
Recent Articles
Java Exercises - Basic to Advanced Java Practice Programs with Solutions
Last Updated: 02 January 2025
Looking for Java exercises to test your Java skills, then explore our topic-wise Java practice exercises? Here you will get 25 plus practic
...read more
Output of Java Program
Java
Java-Library
Java-Output
Java-I/O
java-basics
Java-Object Oriented
Java-Strings
Java-Arrays
Java-Data Types
Java-Functions
Java Programs
Different Ways To Declare And Initialize 2-D Array in Java
Last Updated: 13 November 2024
An array with more than one dimension is known as a multi-dimensional array. The most commonly used multi-dimensional arrays are 2-D and 3-D
...read more
Java
Technical Scripter
Java-Arrays
Picked
Technical Scripter 2020
Java Program to Remove Duplicate Elements From the Array
Last Updated: 16 November 2024
Given an array, the task is to remove the duplicate elements from an array. The simplest method to remove duplicates from an array is using
...read more
Java
Java-Arrays
Java Programs
Picked
Java-Array-Programs
Similar Topics
DSA
22.5k+ articles
Java
10.5k+ articles
Java-Functions
4.1k+ articles
Java Programs
1.9k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Arrays
260+ articles
Java Examples
230+ articles
java-lang-reflect-package
120+ articles
Java-Array-Programs
100+ articles
How to Convert Character Array to String in Java?
Last Updated: 20 December 2024
Strings are defined as an array of characters. The difference between a character array and a string is the string is terminated with a spec
...read more
Java
Java-Strings
Java-Arrays
Arrays.stream() Method in Java
Last Updated: 16 November 2024
Arrays.stream() method is used to get a sequential Stream from the elements of an array passed as a parameter. Below is a simple example tha
...read more
Java
Java-Arrays
Java-Array-Methods
Sorting in Java
Last Updated: 15 March 2024
Whenever we do hear sorting algorithms come into play such as selection sort, bubble sort, insertion sort, radix sort, bucket sort, etc but
...read more
Java
Sorting
Java-Collections
Java-Arrays
Java Programs
DSA
Convert List to Array in Java
Last Updated: 17 July 2024
The List interface provides a way to store the ordered collection. It is a child interface of Collection. It is an ordered collection of obj
...read more
Java
Java-Arrays
java-list
Java - Loop Through an Array
Last Updated: 02 December 2024
In Java, looping through an array or Iterating over arrays means accessing the elements of the array one by one. We have multiple ways to lo
...read more
Java
Java-Arrays
Java-Array-Programs
Print a 2D Array or Matrix in Java
Last Updated: 24 March 2025
In this article, we will learn to Print 2 Dimensional Matrix. 2D-Matrix or Array is a combination of Multiple 1 Dimensional Arrays. In this
...read more
Java
Java-Arrays
Java Programs
Java-Array-Programs
Arrays.toString() in Java with Examples
Last Updated: 25 November 2024
The Arrays.toString() method belongs to the Arrays class in Java. It converts an array into its string representation consisting of a list o
...read more
Java
Java-Arrays
Arrays.fill() in Java with Examples
Last Updated: 25 November 2024
The Arrays.fill()is a method in thejava.util.Arrays class. This method assigns a specified value to each element of an entire array or a spe
...read more
Java
Java-Arrays
Array vs ArrayList in Java
Last Updated: 24 March 2025
In Java, an Array is a fixed-sized, homogenous data structure that stores elements of the same type whereas, ArrayList is a dynamic-size, pa
...read more
Java
Java-Collections
Java - util package
Java-Arrays
Difference Between
Java-ArrayList
Java-Array-Programs
Java-List-Programs
Jagged Array in Java
Last Updated: 03 December 2024
In Java, Jagged array is an array of arrays such that member arrays can be of different sizes, i.e., we can create a 2-D array but with a va
...read more
Java
Java-Arrays
Java-Array-Programs
Java Program to Find Largest Element in an Array
Last Updated: 09 April 2025
Finding the largest element in an array is a common programming task. There are multiple approaches to solve it. In this article, we will ex
...read more
Java
Java-Arrays
Java Programs
Compare Two Arrays in Java
Last Updated: 26 November 2024
In Java, comparing two arrays can be confusing, because the "==" operator only checks if the two arrays point to the same memory location. T
...read more
Java
Java-Arrays
Java-Array-Programs
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
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 !