Deja vu code
Need help in below code - Deja vu code using java import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner word = new Scanner(System.in); String input = word.nextLine(); int l = input.length(); int n = 0; for(int i = 0;i < l;i++) { char temp = input.charAt(i); for(int j = 0; j < l;j++) { if(temp == input.charAt(j)) { n++; } if(n >= 2) { System.out.println("Deja vu"); break; } else { System.out.println("Unique"); break; } } break; } } } I am unable to get Deja vu as an output. Please help.