fork download
  1. import java.util.List;
  2. import java.util.Collections;
  3.  
  4. /* Name of the class has to be "Main" only if the class is public. */
  5. class Ideone
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. List<Integer> l1 = Collections.<Integer>emptyList();
  10. List<Integer> l2 = Collections.<Integer>emptyList();
  11. System.out.println(l1 == l2);
  12. }
  13. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
true