-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrays.java
More file actions
36 lines (29 loc) · 770 Bytes
/
Arrays.java
File metadata and controls
36 lines (29 loc) · 770 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
import java.util.Collection;
class Arrays
{
public static void main(String[] args)
{
int nums[] = {3,5,7,2};
for(int i =0; i< nums.length; i++){
System.out.println(nums[i]);
}
int nums1[] = new int[4];
nums1[0] = 5;
nums1[1] = 4;
nums1[2] = 8;
nums1[3] = 2;
System.out.println(nums1[2]);
}
public static void sort(int[] array) {
}
public static Collection asList(int[] votes) {
return null;
}
public static Collection<?> asList(int[] votes) {
return null;
}
public static void sort(int[] array) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'sort'");
}
}