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
public static String input = "10 5 5 10 6 6 2 3 1 3 4 5 3"; public static void uniqueValue (String numbers) { String [] str = input.split(" "); Set unique = new HashSet (Arrays.asList(str)); System.out.println(unique); for (String value:unique) { int count = 0; for ( int i= 0; i