Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String abc = "аеиоуяюэы";
- Scanner sc = new Scanner(System.in,"cp1251");
- System.out.println("Введите строку");
- String s = sc.nextLine();
- char symbol = '=';
- boolean check = false;
- char[] c = s.toCharArray();
- for(int i = 0; i < s.length(); i++){
- for(int j = 0; j < abc.length(); j++){
- if(c[i] == abc.charAt(j)){
- c[i] = symbol;
- check = true;
- }
- if(check == true)
- break;
- }
- }
- for(int i = 0; i < s.length(); i++)
- System.out.printf("%c",c[i]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement