Java String Reverse

  • + 0 comments
        StringBuffer sb = new StringBuffer(A);
        System.out.println(A.contentEquals(sb.reverse())? "Yes" : "No");