-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathArrayUtil.java
More file actions
29 lines (24 loc) · 589 Bytes
/
ArrayUtil.java
File metadata and controls
29 lines (24 loc) · 589 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
package array.uitl;
/**
* Project Admin -> Husanboy Azamov
* Package Name -> array.uitl
* Class Name -> ArrayUtil
* Copyright © : 6/25/2022
*/
public class ArrayUtil {
/*
public static void show(int[] array) {
for (int i = 0; i < array.length; i++) {
System.out.print(array[i] + "\t");
}
}
*/
// foreach
// 1 2 5 9 8 -10 -23 36
public static void show(int[] array) {
for (int item : array) {
// i-elementni tanlab beradi
System.out.print(item + "\t");
}
}
}