Line 33 is where I get the error and I'm not sure why....can someone please help me. Line 33 is the one that says reverse(). And public String reverse is the method in the class
public String reverse() {
Scanner scan = new Scanner(System.in);
System.out.println("Enter anything in here make sure it is a letter or number..anything else will be destroyed");
String a = scan.nextLine();
String reverse = "";
for (int i = a.length() - 1; i >= 0; i--) {
reverse = reverse + a.charAt(i);
}
System.out.println("Here is your input in reverse: ");
return reverse;
}
public static void main(String[] args) {
reverse();
}