I want to find the palindrome of a string.
public static void main(String[] args)
    {
      String s1 = "eye",s2="";
     for(int i = s1.length()-1;i<=0;--i)
     {
          s2 =s2+String.valueOf(s1.charAt(i));
     }
          System.out.println(s1);
        System.out.println(s2);
    }
}
I expected the output eye eye but, s2 isn't printing.
 
     
    