Java: Print a unique character in a string
问题 I'm writing a program that will print the unique character in a string (entered through a scanner). I've created a method that tries to accomplish this but I keep getting characters that are not repeats, instead of a character (or characters) that is unique to the string. I want the unique letters only. Here's my code: import java.util.Scanner; public class Sameness{ public static void main (String[]args){ Scanner kb = new Scanner (System.in); String word = ""; System.out.println("Enter a