@@ -0,0 +1,1034 @@
+import java.util.Scanner;%0A %0A %0A/**%0A * Generates or verifies palindromes%0A * @author Vartan%0A */%0Apublic class Palindrome %7B%0A    /**%0A     * Tests if the String is a palindrome%0A     * @param s   %3Ccode%3EString%3C/code%3E to test palindrome-ness%0A     * @return    %3Ccode%3Etrue%3C/code%3E if the String is a palindrome%0A     */%0A    public static boolean isPalindrome(String s) %7B%0A        for(int i=0;i%3Cs.length();i+=2) %7B%0A            if(!s.substring(i,i+1).equals(s.substring(s.length()-i-1,s.length()-i)))%0A                return false;%0A        %7D%0A        return true;%0A    %7D%0A    /**%0A     * Tests if the String is a palindrome%0A     * @param s           %3Ccode%3EString%3C/code%3E to make palindrome%0A     * @param repeatLast  if %3Ccode%3Etrue%3C/code%3E, repeat the last letter%0A     * @return            Palindromized word%0A     */%0A    public static String generatePalindrome(String s, boolean repeatLast) %7B%0A        String palindrome = s;%0A        for(int i=s.length()-1-(repeatLast?0:1);i%3E=0;i--)%0A            palindrome+=s.substring(i,i+1);%0A        return palindrome;%0A    %7D%0A%7D%0A

Create Palindrome.java