public void printArray(int num[]){
        for(int i=0; i < num.length; i++){
            System.out.print(num[i] + " ");
        }
    }
http://www.geeksforgeeks.org/given-a-number-find-next-smallest-palindrome-larger-than-this-number/
src/com/interview/number/NextLargestPalindrome.java