All pastes #356757 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-02-15 07:30 UTC
rendered paste body
	public boolean isPalindrome(char[] array, int startIndex, int endIndex){				if (endIndex == 0)                 {                   return false;                 }                if (array[startIndex]==array[endIndex] && (startIndex == endIndex))			return true;		if (array[startIndex]!=array[endIndex] ){			System.out.println("false.!!.");			return false;		}		else{						return isPalindrome(array, startIndex+1, endIndex-1);						}	} 	 }