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. ArrayList<String> mAllApns;
  13. // your code goes here
  14. for(int i=0; i<1000; i++) {
  15. mAllApns = new ArrayList<String>();
  16. if (i%2 == 0) {
  17. mAllApns.add("apn1");
  18. mAllApns.add("apn2");
  19. mAllApns.add("apn3");
  20. mAllApns.add("apn4");
  21. mAllApns.add("apn5");
  22. } else {
  23. mAllApns.add("apn10");
  24. mAllApns.add("apn20");
  25. mAllApns.add("apn30");
  26. mAllApns.add("apn40");
  27. mAllApns.add("apn50");
  28. }
  29. mAllApns.clear();
  30. }
  31. }
  32. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
Standard output is empty