All pastes #356779 Raw Edit

Anonymous

public java v1 · immutable
·published 2007-02-15 07:48 UTC
rendered paste body
	public static boolean isPalindrome(CharSequence chars) {		if (chars.length() <= 1) {			return true;		} else if (chars.charAt(0) != chars.charAt(chars.length()-1)) {			return false;		} else {			return isPalindrome(chars.subSequence(1, chars.length()-1));		}	}