Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Your task: win the game.
- * Game rules:
- * 1. You may only modify the code for the class Entity.
- * 2. You may not modify main.
- * 3. You may not override equals in Entity.
- */
- public class Conundrum {
- public static void main(String[] args) {
- Entity e = new Entity();
- if (e.equals(e)) {
- throw new RuntimeException("YOU HAVE FAILED");
- }
- System.out.println("You have won the game!");
- }
- public static class Entity {
- // IMPLEMENT ME
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement