-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathADD.java
More file actions
28 lines (27 loc) · 678 Bytes
/
ADD.java
File metadata and controls
28 lines (27 loc) · 678 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
public class ADD {
public static String[] Sheets = new String[256];
public static long count = 0;
public static boolean add() {
Sheets[0] = "Sheet1";
Sheets[1] = "Sheet2";
Sheets[2] = "Sheet3";
int a = 0, N = 1;
count = 0;
for(a = 0; a < Sheets.length; a++) {
if(Sheets[a] == null) {
Sheets[a] = "Sheet" + Integer.toString(N);
N++;
count++;
break;
} else {
N++;
count++;
}
}
if(count >= 256) {
return false;
} else {
return true;
}
}
}