Question: IN JAVA!!!! Write a method named isPalindrome that takes a char array as an argument and returns true if it represents a palindrome and false
IN JAVA!!!!
Write a method named isPalindrome that takes a char array as an argument and returns true if it represents a palindrome and false otherwise. Print this value in your main.
Test this method in your main three times with different char arrays. At least one test should return true and at least one should return false. Do not include spaces in your input.
Palindromes read the same forwards and backwards.
Example
Input: [h, e, l, l, o]
Return: false
Input: [k, a, y, a, k]
Return: true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
