forked from ShivangiSingh17/Java-Jet
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasicArray.java
More file actions
Latest commit
22 lines (15 loc) · 448 Bytes
/
Copy pathBasicArray.java
File metadata and controls
22 lines (15 loc) · 448 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// both are valid declarations
intintArray[];
orint[] intArray;
bytebyteArray[];
shortshortsArray[];
booleanbooleanArray[];
longlongArray[];
floatfloatArray[];
doubledoubleArray[];
charcharArray[];
// an array of references to objects of
// the class MyClass (a class created by the user)
MyClassmyClassArray[];
Object[] ao, // array of Object
Collection[] ca; // array of Collection of unknown type