2017년 10월 20일 금요일

[Java Lab Programming] Correct typos of programming practice on Oct. 19

private static boolean isPalindrome(String s, int low, int high) {

if (high <= low)
return true;
else if (s.charAt(low) != s.charAt(high))
return false;
else return isPalindrome(s, low + 1, high - 1);
}