Commit 45ad6cc9 authored by areej.mohammad's avatar areej.mohammad

step 1

parent 4e884139
......@@ -3,12 +3,14 @@ import java.util.Random;
public class Vault {
private final int correctpassword;
public Vault(){
this.correctpassword=new Random().nextInt(10000);
//create a Random Password
this.correctpassword=new Random().nextInt(10000);
}
//checks the password guess
public boolean isCorrectPassword (int gusses)
{
try {
......
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