Here I did a puzzle, but for some reason it does not work, help, please, to make out the mistakes.
The meaning of the task is to find characters in the string that occur 1 time.
package org.jazzteam; public class ArbitrarySymbols { public static String one() { String l = ""; String str = "hello Wrold"; int count = 0; int count1 = 0; char chars[] = str.toCharArray(); for (int i = 0; i < str.length(); i++) { for (int j = 0; j < str.length(); j++) { if (chars[i] == chars[j]) { count++; } } if (count > 1) { } else { l += str.charAt(i); count = 0; } } return l; } public static void main(String[] args) { System.out.println(one()); } }