Question: JAVA: 1. Write a program that prints the following arrays values in descending order: int a[]={1,5,3,7,9,0,2,6,4,8}; 2. A palindrome is a number or text phrase

JAVA:

1. Write a program that prints the following arrays values in descending order: int a[]={1,5,3,7,9,0,2,6,4,8};

2. A palindrome is a number or text phrase that reads the same backwards as forwards. For example, each of the following five-letter words is a palindrome: abcba, ghihg, bbbbb. Write a program containing a method that determines whether a five-letter word is a palindrome. char ch[] = {'a', 'b', 'c', 'b', 'a'}; // it is a palindrome char ch2[] = {'a', 'b', 'c', 'd', 'e'}; // it is not a palindrome

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!