-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
25 lines (22 loc) · 789 Bytes
/
Main.java
File metadata and controls
25 lines (22 loc) · 789 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
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
ArrayList thePass = new ArrayList();
ValidatePass validatePass = new ValidatePass();
FindPass findPass = new FindPass(thePass);
FindPassCapital secondFindPass = new FindPassCapital(thePass);
// Set size list
for(int i=1; i <= findPass.password.length; i++){
thePass.add(i);
}
Thread runScan0 = new Thread(findPass);
Thread runScan1 = new Thread(secondFindPass);
runScan0.start();
runScan1.start();
try{
runScan0.join();
runScan1.join();
}catch (Exception e){System.out.println(e);}
validatePass.found(thePass);
}
}