-
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathMain.java
More file actions
35 lines (27 loc) · 679 Bytes
/
Main.java
File metadata and controls
35 lines (27 loc) · 679 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
import java.util.Scanner;
class Array {
private int[] array;
private int size;
private int length;
public Array() {
this.size = 13;
this.length = 0;
this.array = new int[this.size];
}
public Array(int size) {
this.size = size;
this.length = 0;
this.array = new int[this.size];
}
}
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Array arr1, arr2;
System.out.print("Enter size: ");
int size = scanner.nextInt();
arr1 = new Array(size);
arr2 = new Array();
scanner.close();
}
}