forked from mohammedabdulbari/Java-SE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayPractice1.java
More file actions
45 lines (31 loc) · 824 Bytes
/
ArrayPractice1.java
File metadata and controls
45 lines (31 loc) · 824 Bytes
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
41
42
43
44
45
package arraypractice1;
public class ArrayPractice1 {
public static void main(String[] args) {
int A[]=new int[10];
int B[]={1,2,3,4,5};
/*int C[];
C=new int[10];
B[2]=15;*/
/*for(int i=0;i<A.length;i++)
{
System.out.println(A[i]);
}*/
/*for(int i=0;i<B.length;i++)
{
System.out.println(B[i]);
}*/
/*for(int x:B)
{
System.out.println(x++);
}
for(int x:B)
{
System.out.println(x);
}*/
/*for(int i=0;i<B.length;i++)
{
System.out.println(B[i]++);
}*/
System.out.println(B.length);
}
}