fork download
  1. // Online Java Compiler
  2. // Use this editor to write, compile and run your Java code online
  3. import java.util.*;
  4. class Main {
  5. public static void main(String[] args) {
  6. Scanner sc = new Scanner(System.in);
  7. String n = sc.nextLine();
  8. for(int i=0;i<n.length();i++)
  9. {
  10. char ch = n.charAt(i);
  11. if(ch =='A'|| ch =='E'||ch =='I'||ch == 'O'|| ch =='U')
  12. {
  13. ch++;
  14. }
  15. else
  16. {
  17. continue;
  18. }
  19. }
  20. System.out.println(n);
  21.  
  22. }
  23. }
Success #stdin #stdout 0.14s 56668KB
stdin
45
stdout
45