¡@

Home 

java Programming Glossary: assertentirety

How does this Java regex detect palindromes?

http://stackoverflow.com/questions/3664881/how-does-this-java-regex-detect-palindromes

of the string matches the given pattern static String assertEntirety String pattern return ^pattern . .replace pattern pattern public.. args final String PALINDROME x . add chk .replace add assertEntirety . 1 2 .replace chk assertEntirety 2 System.out.println PALINDROME.. . add chk .replace add assertEntirety . 1 2 .replace chk assertEntirety 2 System.out.println PALINDROME x . ^. 1 2 . ^ 2 . String tests..