fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. IntList[][] lists = new IntList[5][5];
  14. IntSet[][] sets = new IntSet[5][5];
  15. IntIntMap[][] maps = new IntIntMap[5][5];
  16. IntDeque[][] deques = new IntDeque[5][5];
  17. IntHeap[][] heaps = new IntHeap[5][5];
  18.  
  19. (new IntList()).add(100);
  20. (new IntSet()).add(100);
  21. (new IntIntMap()).put(100, 99);
  22. (new IntDeque()).addLast(100);
  23. (new IntHeap()).add(100);
  24.  
  25. }
  26. }
  27.  
  28. class IntList extends ArrayList<Integer> {}
  29. class IntSet extends HashSet<Integer> {}
  30. class IntIntMap extends HashMap<Integer, Integer> {}
  31. class IntDeque extends ArrayDeque<Integer> {}
  32. class IntHeap extends PriorityQueue<Integer> {}
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
Standard output is empty