can help me in this code
i made it to check if a given number is plindrom or not
import java .util.Scanner;
public class PNumber {
public static void main(String[] args) {
System.out.println("Enter size ");
Scanner input = new Scanner(System.in);
int size = input.nextInt();
int [] array=new int [size];
System.out.print("Please enter a number: ");
for ( int i=0;i<=size;i++)
array[i]=input.nextInt();
for ( int i=0;i<=size;i++){
if(array[i]==array[i].length-1)
System.out.print("plindrom ");
else
System.out.print("not plindrom ");
}}}