Duplicate characters in a String oneliner + method + tests (Java) on March 09, 2025 java programming +