Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Q
QuizRMI
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
diaa.hanna
QuizRMI
Commits
efc5122b
Commit
efc5122b
authored
Nov 16, 2025
by
drnull03
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a TODO
parent
2613b598
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
TODO
TODO
+3
-0
QuizServer.java
src/main/java/com/quiz/server/QuizServer.java
+3
-2
No files found.
TODO
0 → 100644
View file @
efc5122b
1.change questions and add more
2.change when the leader board is updated
3. solve the last optional question
src/main/java/com/quiz/server/QuizServer.java
View file @
efc5122b
...
...
@@ -18,6 +18,7 @@ public class QuizServer extends UnicastRemoteObject implements QuizService {
questions
.
add
(
new
Question
(
"What is 2 + 2?"
,
"4"
));
questions
.
add
(
new
Question
(
"Capital of France?"
,
"Paris"
));
questions
.
add
(
new
Question
(
"Java is ___?"
,
"Programming language"
));
// don't forget to add more questions in the future
}
@Override
...
...
@@ -67,9 +68,9 @@ public class QuizServer extends UnicastRemoteObject implements QuizService {
Registry
registry
=
LocateRegistry
.
createRegistry
(
1099
);
registry
.
rebind
(
"QuizService"
,
server
);
System
.
out
.
println
(
"Quiz Server is running..."
);
synchronized
(
server
)
{
synchronized
(
server
)
{
server
.
wait
();
}
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
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