The files provided in the code editor to the right containsyntax and/or logic errors. In each case, determine and fix theproblem, remove all syntax and coding errors, and run the programto ensure it works properly.
// Application allows user to enter a series of words
// and displays them in reverse order
import java.util.*;
public class DebugEight4
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int x = 0, y;
String array[] = new String[100];
String entry;
final String STOP = XXX;
StringBuffer message = new
StringBuffer(“The words in reverse order aren”);
System.out.println(“Enter any wordn” +
“Enter + STOP + when you want to stop”);
entry = input.next();
while(!(entry.equals(STOP)))
{
array[x] = entry;
++x;
System.out.println(“Enter another wordn” +
“Enter