Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
First_git
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rawan.salameh
First_git
Commits
4f7842d8
You need to sign in or sign up before continuing.
Commit
4f7842d8
authored
Nov 04, 2025
by
rawan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
step1
parents
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
0 deletions
+35
-0
AscendingHackerThread.java
src/hacker/AscendingHackerThread.java
+4
-0
DescendingHackerThread.java
src/hacker/DescendingHackerThread.java
+4
-0
Main.java
src/hacker/Main.java
+4
-0
PoliceThread.java
src/hacker/PoliceThread.java
+4
-0
Vault.java
src/hacker/Vault.java
+19
-0
No files found.
src/hacker/AscendingHackerThread.java
0 → 100644
View file @
4f7842d8
package
hacker
;
public
class
AscendingHackerThread
{
}
src/hacker/DescendingHackerThread.java
0 → 100644
View file @
4f7842d8
package
hacker
;
public
class
DescendingHackerThread
{
}
src/hacker/Main.java
0 → 100644
View file @
4f7842d8
package
hacker
;
public
class
Main
{
}
src/hacker/PoliceThread.java
0 → 100644
View file @
4f7842d8
package
hacker
;
public
class
PoliceThread
{
}
src/hacker/Vault.java
0 → 100644
View file @
4f7842d8
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment