Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ((c = (char)br.read()) != -1) {
- for (int i = 0; i <= size; ++i) {
- if (size == 0) {
- characters[i] = c;
- charCount[i]++;
- size++;
- System.out.println("Letter/Count: " + characters[i] + "/" + charCount[i]);
- break;
- }
- if (characters[i] == c) {
- charCount[i]++;
- break;
- } else if (i == size) {
- characters[i] = c;
- charCount[i]++;
- size++;
- System.out.println("Letter/Count: " + characters[i] + "/" + charCount[i]);
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment