Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
40 lines (35 loc) · 995 Bytes

File metadata and controls

40 lines (35 loc) · 995 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package array;
public class ArrayDocs {
/*
* ------------------ Array ---------------------
*
* int a = 900;
* a= 500;
* sout(a); // 500
*
* # use to store and processing static(fixed size) multiple data
* # also called collection of homogeneous data
* # its a collection/group of multiple data having similar data type with fixed size
*
* # data stored on the basis of indices.(index starts from 0)
* # random access
* # contains dublicate data
* # contiguous memory allocation
* # array itself is an object in java.
*
* syntax :
* data_type array_name[] = new data_type[size];
*
* eg :
* int bprice[] = new int[500];
* String[] capacity = new String[90];
*
* float []height = new float[5000];
*
* char vs[] = new char[5];
*
* // here Book and Employee data_type is not present in java so it is like a class where object can be stored
* Book books[] = new Book[200];
* Employee emps[] = new Employee[800];
*/
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.