-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindPass.java
More file actions
28 lines (27 loc) · 978 Bytes
/
FindPass.java
File metadata and controls
28 lines (27 loc) · 978 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
import java.util.ArrayList;
public class FindPass implements Runnable{
ArrayList valList;
FindPass(ArrayList value){
valList = value;
}
public char[] password = "userDawin".toCharArray();
public void run()
{
char nonCapital;
// Find nonCapital
for (int x = 0; x < password.length; x++){
for(nonCapital='a';nonCapital <= 'z'; nonCapital++){
if (password[x] != nonCapital){
System.out.println
("Thread [ID-"+Thread.currentThread().getId()+"] Searching.. "+ nonCapital);
}
else {
System.out.println
("non-Capital Thread [ID-"+Thread.currentThread().getId()+"] Found ->> "+ nonCapital);
valList.set(x,nonCapital);
break;
}
}
}//validatePass.found(thePass);
}
}