What is the mistake in code

import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
double c=0;
int temp=n;
int count=0;
while(n>0)
{
n=n/10;
count++;
}
while(n>0)
{
int a=n%10;
n=n/10;
c=c+Math.pow(a,count);
}
if(temp==c)
{
System.out.println(“true”);
}
else
{
System.out.println(“false”);
}
}
}