Write a program that reads a list of integers from input and determines if the list is a palindrome (values are identical from first last to first and last to first). The input begins with an integer indicating the length of the list that follows. Assume that the list will always contain fewer than 20 integers. Output 'yes" if the list is a palindrome and "no' otherwise. The output ends with a newline.
hello how are you? can you Please code this in Java .. dont use advanced coding and dont edit the whole code and only start editing from where it is menthioned in the code. Please follow the instructions as it is and please see that the input and output are exactly as same as provided in the image. thank you.
Write a program that reads a list of integers from input and determines if the list is a palindrome (values are identical from first last to first and last to first). The input begins with an integer indicating the length of the list that follows. Assume that the list will always contain fewer than 20 integers. Output 'yes" if the list is a palindrome and "no' otherwise. The output ends with a newline.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images