`import java.util.Scanner;
public class Palindrome {
public static boolean check(int a)
{
char[] b= (""+ a).toCharArray();
int c=b.length;
int j=c;
char[] n= new char[c];
for(int i=0; i<c; i++)
{
n[j-1]=b[i];
j--;
}
boolean z=true;
for(int i=0; i<c; i++)
{
if(n[i]!=b[i])
{
z=false;
}
}return z;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int ile=sc.nextInt();
for (int i=0; i<ile; i++)
{
int a=sc.nextInt();
a=a+1;
while(check(a)==false)
{
a++;
}
System.out.println(a);
}
sc.close();
}
}
`
Any ideas why I could be getting the runtime error ??