fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.Scanner;
  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. Scanner scan = new Scanner(System.in);
  13. String a = scan.nextLine();
  14. for (int i = 0; i < a.length(); i++)
  15. {
  16. if (!(a.substring(i,i + 1).equals("a") ||
  17. a.substring(i,i + 1).equals("e") ||
  18. a.substring(i,i + 1).equals("i") ||
  19. a.substring(i,i + 1).equals("o") ||
  20. a.substring(i,i + 1).equals("u")))
  21. {
  22. System.out.print(a.substring(i,i + 1).toUpperCase());
  23. }
  24. else
  25. {
  26. System.out.print(a.substring(i,i + 1));
  27. }
  28. }
  29. }
  30. }
Success #stdin #stdout 0.14s 54576KB
stdin
I wonder what this does!
stdout
I WoNDeR WHaT THiS DoeS!