Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String eingabe = "asdasasdasd";
- int len = eingabe.length();
- int counter = 0;
- for (int i = 0; i < len; i++)
- if (eingabe.charAt(i) == 'a')
- counter++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement