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
how about this :)
for (int i=0; i< input.length();i++) if(input.indexOf(input.charAt(i)) == input.lastIndexOf(input.charAt(i))) System.out.println(input.charAt(i) + " is unique");