Write a Program to check whether a string is a palindrome or not in Java.
Upon completion of this lab, you will be able to:
● Build Logical Thinking.
● Check if a string is a palindrome or not.
You should have VS Code or any other suitable IDE for programming and running the code.