
public class UsePalindrome
{
   public static void main(String[] args) 
   {
      String  s = "racecar";
      boolean ans;

      ans = Tools.isPalindrome(s); // We can call isPalindrome(String w)

      ans = Tools.isPalindrome(s, 0, s.length()-1);
                // We can ALSO call 
                // isPalindrome(w, startPos, endPos)
   }
}
