Advertisement
Guest User

Untitled

a guest
Apr 9th, 2013
186
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None
  1. /* 129 */ if(s==null){return 1==0;}s=s.toLowerCase().replaceAll("[^a-z0-9]", "");return s.equals(new StringBuffer(s).reverse().toString());
  2. /* 104 */ s=s.toLowerCase().replaceAll("[^a-z0-9]", "");return s.equals(new StringBuffer(s).reverse().toString());
  3. /* 103 */ s=s.toLowerCase().replaceAll("[^a-z0-9]","");return s.equals(new StringBuffer(s).reverse().toString());
  4. /* 102 */ s=s.replaceAll("[^A-Za-z0-9]","");return s.equalsIgnoreCase(new StringBuffer(s).reverse().toString());
Advertisement
RAW Paste Data Copied
Advertisement