Advertisement
michael_xgrind

Remove vogais

Oct 16th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Rodolfo {
  4.    
  5.     public static void main(String[] args) {
  6.         String palavra = ""; Scanner leia = new Scanner(System.in);
  7.        
  8.         do {
  9.             palavra = leia.nextLine();                     
  10.             if(!palavra.equals("#")) {
  11.                 System.out.println(palavra.replaceAll("[AEIOUaeiou]",""));             
  12.             }
  13.         } while(!palavra.equals("#") );
  14.        
  15.     }
  16.    
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement