I it works, it can't be that bad, but, don't use ints instead of booleans. Try the following inputIt is slightly odd the way that your exercise requires the length of the array, because every array has a field called length, Maybe the exercise is intended to be solved in C, not Java®, because:-
1: The  are written later than would be correct style in Java®.
2: The size of the array would be required in C, but isn't in Java®.
3: Java® has a boolean type, but C doesn't and has to use int.
The method names aren't correct style for either language: in C they would read is_palindrome() and in Java® isPalindrome(). Don't call classes things like MyClass or C1. Give them informative names.
So let's try the method according to Java® conventions:-Note I have called the second parameter pairLocation because it doesn't determine the size of the array, but which pair of letters you are comparing. You are right to use the subtractions, but you need to work out where to stop. There is no need to go back to pairLocation = 0.
What are the criteria for being a palindrome:-
1: A String with one letter or less is a palindrome.
2: A String is a palindrome if its first and last letters are the same, and the remainder with those two letters taken off is a palindrome.
Use the :? operator or a singlle expression if possible.Your lines 24‑26 are nearly as incorrect as the last code block I showed you. Look at our style suggestions whch will give you a hint about what is wrong.