can someone check my codes where my error was?!
import java.io.*;
import java.util.Arrays;
public class exer06_01{
public static void main(String [] argv)throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String sh = " ";
String str = new String(sh);
System.out.print("Enter a string: ");
str = br.readLine();
System.out.println("The reverse: "+ReverseString.reverseIt(str));
if (ReverseString.reverseIt(str)) {
System.out.println("It IS a palindrome!");
} else {
System.out.println("It is NOT a palindrome!");
}
System.out.println();
}
}
thanks in advance..;) ..it will be a big help or me..