Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /**
  2. * Your task: win the game.
  3. * Game rules:
  4. * 1. You may only modify the code for the class Entity.
  5. * 2. You may not modify main.
  6. * 3. You may not override equals in Entity.
  7. */
  8. public class Conundrum {
  9. public static void main(String[] args) {
  10. Entity e = new Entity();
  11. if (e.equals(e)) {
  12. throw new RuntimeException("YOU HAVE FAILED");
  13. }
  14. System.out.println("You have won the game!");
  15. }
  16.  
  17. public static class Entity {
  18. // IMPLEMENT ME
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement