Find if string is palindrome or not
Sigiloso
use stack to find it. Suppose s is the string which is to be investigate. //get the length of String public boolean palindromeChecker() { boolean result=true; int len=s.length(),run; run=len/2; int i=0; while(run!= 0){ if(s.charAt(i)!=(s.charAt((len-1)-i))){ result=false; break; } i++; run--; } return result; }