How would you write a Java program to check if a string is a palindrome?
I would iterate through the string from the start and end, checking if each character is the same, and return false if any characters donâ€™t match.
Great! You're using an efficient approach by iterating from both ends.
Can you implement this palindrome-checking logic in Java without using additional space?