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. char[] cs = new char[0x10000];
  14. for (int i = 0; i < 0x10000; i++) {
  15. cs[i] = (char)i;
  16. }
  17. Random rand = new Random();
  18. for (int i = cs.length-1; i > 0; i--) {
  19. int j = rand.nextInt(i+1);
  20. char c = cs[i];
  21. cs[i] = cs[j];
  22. cs[j] = c;
  23. }
  24. String s = new String(cs);
  25. for (char c : s.toCharArray()) {
  26. if ('A' <= c && c <= 'Z')
  27. System.out.print(c);
  28. }
  29. }
  30. }
Success #stdin #stdout 0.09s 33228KB
stdin
Standard input is empty
stdout
IUWFXVALKYNBMJZPEQHRCGDTSO