Array for Palindrome

Hi, I was wondering if anyone could help me with this. We were given the following layout and have to fill in the rest to make the array program for palindromes to work but I just can't get it to!

public class palindrome
{
public static void main(String[] args)
{
int i;
int j;
int palindromeSize=;//ENTER NUMBER OF LETTERS IN SUSPECTED PALINDROME
char palindrome[]=new char[palindromeSize];//Create array to hold the characters of a palindrome to be tested

//ENTER CHARACTERS OF PALINDROME INTO ARRAY
for)
}
{

palindrome[i]=inputCharacter;

}
System.out.print("The word or phrase to be tested is: ");
//traverse the array to print out the suspected palindrome
for()
{

;
}
System.out.println();
//A palindrom is tested by comparing first and last letter, second and second last letter etc until middle
for()
{
if()
{
System.out.println("and it is not a palindrome! ");
break;

}
if()//middle of word is reached
{
System.out.println("and it is a palindrome!");
}
}
}
}

so what's your approach? What did you try? Where exactly did you have problems?

Please note that this is not a homework service, so we won't give you a solution for you to copy and paste or something. We can help you with concrete questions, but you have to do the actual programming.

Then do a loop, which checks the string length and if the length is equal to one, then its a palindrome if not then simply have it loop through a comparison of the first letter with the last letter (best idea to use char and substring), then if it doesnt equal then break out of the loop and say its not a palindrome..