Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Rodolfo {
- public static void main(String[] args) {
- String palavra = ""; Scanner leia = new Scanner(System.in);
- do {
- palavra = leia.nextLine();
- if(!palavra.equals("#")) {
- System.out.println(palavra.replaceAll("[AEIOUaeiou]",""));
- }
- } while(!palavra.equals("#") );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement