Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void letterCheck(char[] x) {
- int counter = 0;
- char temp;
- System.out.println(x.length);
- for(int i = 0; i < x.length; i++) {
- temp = x[i];
- System.out.println(temp);
- for(int j = 1; j < x.length; j++) {
- if(temp == x[j]) {
- counter += 1;
- System.out.println(counter);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment