Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String entferneVokale(String wort)
- {
- String result="";
- if(wort==null){
- throw new IllegalArgumentException();
- }
- if(wort.length()==0){
- return result;
- }
- char c = wort.charAt(0);
- if (istVokal(c)){
- return result+entferneVokale(wort.substring(1));
- }
- return result+c+entferneVokale(wort.substring(1));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement