Guest User

Untitled

a guest
Oct 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. while ((c = (char)br.read()) != -1) {
  2. for (int i = 0; i <= size; ++i) {
  3. if (size == 0) {
  4. characters[i] = c;
  5. charCount[i]++;
  6. size++;
  7. System.out.println("Letter/Count: " + characters[i] + "/" + charCount[i]);
  8. break;
  9. }
  10. if (characters[i] == c) {
  11. charCount[i]++;
  12. break;
  13. } else if (i == size) {
  14. characters[i] = c;
  15. charCount[i]++;
  16. size++;
  17. System.out.println("Letter/Count: " + characters[i] + "/" + charCount[i]);
  18. break;
  19. }
  20. }
  21. }
Add Comment
Please, Sign In to add comment