Regarding error

can u elaborate error in this code?
import java.util.*;

public class Main {

public static void main(String args[]) {
    // Your Code Her
     String str="madam";
     String s;

boolean isPalindrome(String str)
{

    for(int i=str.length()-1;i>0;i--){
      s=""+str.charAt(i);
      
    }
    if(s.equals(str))
    return true;
    else 
    return false;

}

   isPalindrome(str);
}

}

Hii ishant,you have done the same errors in this question too,here is the correct edited code
https://ide.codingblocks.com/s/56491

Hi Ishant, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.