kodejava-lang-package/src/main/java/org/kodejava/example/lang/PalindromeChecker.java
private boolean isPalindrome(String text) {
        System.out.println("Original text = " + text);

        String reverse = new StringBuilder(text).reverse().toString();
        System.out.println("Reverse text  = " + reverse);

        // Compare the original text with the reverse one and ignoring its case
        return text.equalsIgnoreCase(reverse);
    }
/**
     * This method checks the string for palindrome. We use StringBuilder to
     * reverse the original string.
     *
     * @param text
     * @return
     */
This method checks the string for palindrome. We use StringBuilder to
reverse the original string.

@param text
@return
This method checks the string for palindrome . We use StringBuilder to reverse the original string . @param text @return
private boolean isPalindrome(String text) {
        System.out.println("Original text = " + text);
        String reverse = new StringBuilder(text).reverse().toString();
        System.out.println("Reverse text  = " + reverse);
        return text.equalsIgnoreCase(reverse);
    }
private boolean isPalindrome ( String text ) { System . out . println ( "Original text = " + text ) ; String reverse = new StringBuilder ( text ) . reverse ( ) . toString ( ) ; System . out . println ( "Reverse text  = " + reverse ) ; return text . equalsIgnoreCase ( reverse ) ; }
This method checks the string for palindrome.
This method checks the string for palindrome .
// Compare the original text with the reverse one and ignoring its case