-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharry2d.java
More file actions
60 lines (54 loc) · 1.94 KB
/
Copy patharry2d.java
File metadata and controls
60 lines (54 loc) · 1.94 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
public class arry2d {
public static void main(String arg[]){
// int A[][]=new int[5][5];
// int B[][]={{1,2,3},{4,5,5},{6,8,9}};
// for(int i=0;i<B.length;i++){
// for(int j=0;j<B[0].length;j++){
// System.out.print(B[i][j]+",");
// }System.out.println("");
// }
// "FOR EACH LOOP"
// for (int x[] : B) {
// for (int y : x) {
// System.out.print(y+",");
// }System.out.println("");
// }
// JACKED ARRAY//
// int A[][];
// A=new int[3][];
// A[0]=new int[5];
// A[1]=new int[3];
// A[2]=new int[8];
// for(int i=0;i<A.length;i++){
// for(int j=0;j<A[i].length;j++){
// System.out.print(A[i][j]+",");
// }System.out.println();
// }
// "ADDITION OF TWO ARRAY//"
// int A[][]={{1,2,3},{1,2,3},{3,4,5}};
// int B[][]={{2,3,4},{4,5,6},{3,4,4}};
// int C[][]=new int[3][3];
// for(int i=0;i<A.length;i++){
// for(int j=0;j<A[i].length;j++){
// System.out.print(A[i][j]+",");
// }System.out.println("");
// }System.out.println("");
// for(int i=0;i<B.length;i++){
// for(int j=0;j<B[i].length;j++){
// System.out.print(B[i][j]+",");
// }System.out.println("");
// }System.out.println("");
// for(int i=0;i<3;i++){
// for(int j=0;j<3;j++){
// C[i][j]=A[i][j]+B[i][j];
// System.out.print(C[i][j]+",");
// }System.out.println("");
// }
// "SORTING OF ARRAY"//
// String arr[]={"java","python","pascal","ada","bridge"};
// java.util.Arrays.sort(arr);
// for ( String x : arr) {
// System.out.println(x);
// }
}
}