Write a Program that prints a given string in reverse order using a while loop

Use that same program to check if the given string is a pallindrome or not?

USE JAVA PLS
75 POINTS NEED QUICK PLEASE