Is Palindrome test case 4 failing

Test case 4 is failing please help with this. I have posted the code bellow

import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scn=new Scanner(System.in);
String s=scn.nextLine();
String out="";
int j=s.length()-1;
for(int i=0;i<(s.length()/2);i++) {
if(s.charAt(i)==s.charAt(j)) {
out=“true”;
j–;
}
else {
out=“false”;
j–;
}
}
System.out.println(out);

}

}