Java for all n values not more than 200, the square of n is the palindrome number with symmetric property The palindrome number is stored in array; Output the number of palindromes in the array

Java for all n values not more than 200, the square of n is the palindrome number with symmetric property The palindrome number is stored in array; Output the number of palindromes in the array

import java.util.ArrayList ;public class B { public static void main(String[] args) throws Exception { ArrayList list=new ArrayList(); for(int n=0,k=0;n