Where i made a mistake??Please Help
package Program; import java.util.*; public class Perfect_Number { public static void main(String args []) { String Choice ; int x=1;int y=1; if(x-y==0) { int a; Scanner in =new Scanner(System.in); System.out.println("Enter the value to be checked :"); a=in.nextInt(); int b;int c = 0; for (b=1;b<=a;b++) { if (a%b==0) { c=b+c; System.out.println("The Factors of "+a+" are " + b); } } if (c==a) { System.out.println("It is a perfect number"); } else { System.out.println("It is not a perfect number"); } System.out.println("Type Yes to restart of No to Quit"); Choice=in.next(); if (Choice=="Yes") { y=0; } } } }