Create a loop for testing
head . next . next . next . next . next = head . next . next ; if ( isPalindrome ( head ) == true ) System . out . println ( " Palindrome " ) ; else System . out . println ( " Not ▁ Palindrome " ) ; } }