Commit efc5122b authored by drnull03's avatar drnull03

added a TODO

parent 2613b598
1.change questions and add more
2.change when the leader board is updated
3. solve the last optional question
......@@ -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();
}
......
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