- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is an array data structure in Java?
Array is a container which can hold a fix number of items and these items should be of the same type. Most of the data structures make use of arrays to implement their algorithms. Following are the important terms to understand the concept of Array.
Element − Each item stored in an array is called an element.
Index − Each location of an element in an array has a numerical index, which is used to identify the element.
Example
public class ArrayExample { public static void main(String args[]){ int myArray[] = {44, 69, 89, 635}; for (int i = 0; i<myArray.length; i++){ System.out.println(myArray[i]); } } }
Output
44 69 89 635
- Related Articles
- Array Doubling in Data Structure
- ADT-array Representation in Data Structure
- What is an array in Java?
- Array of Arrays Representation in Data Structure
- Multiple Lists in a Single Array in Data Structure
- What is an atomic structure?
- What is the structure of the data warehouse?
- How to switch data from an array to array list in java?
- What is a series data structure in Pandas library in Python?
- Is array a primitive data type in Java?
- Rectangle Data in Data Structure
- What is the syntax for defining the data structure in C++?
- What is an anonymous array and explain with an example in Java?
- Algorithm to construct an Expression Tree in Data Structure
- Java Program to Implement the graph data structure

Advertisements