Commit 4f7842d8 authored by rawan's avatar rawan

step1

parents
package hacker;
public class AscendingHackerThread {
}
package hacker;
public class DescendingHackerThread {
}
package hacker;
public class Main {
}
package hacker;
public class PoliceThread {
}
package hacker;
import java.util.Random;
public class Vault {
private int password;
public Vault(){
Random random = new Random();
this.password = random.nextInt(10000);
System.out.println(" the correct password:"+this.password);
}
public boolean isCorrectPassword(int x){
try{
Thread.sleep(5);
}catch (InterruptedException e){
e.printStackTrace();
}
return x == this.password;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment