public static void main(String args[]){
        
        NextLargestPalindrome nextLargestPalindrom = new NextLargestPalindrome();
        int num[] = {6,5,4,4,5,6};
        //handle case of 999 separately
        nextLargestPalindrom.nextPalindrome(num);
        nextLargestPalindrom.printArray(num);
    }
http://www.geeksforgeeks.org/given-a-number-find-next-smallest-palindrome-larger-than-this-number/
src/com/interview/number/NextLargestPalindrome.java