将字符串中的英文双引号转换成汉语言的

将字符串中的英文双引号转换成中文的
public static String replaceQuatos(String content)
    {
        //把字符串按照双引号截成数组
        String[] str = content.split("\"");
        //替换后的字符串
        String Newstr = "";
        for (int i = 1; i <= str.length; i++)
        {
            if (i % 2 == 0){
                Newstr += str[i - 1] + "”";
            }else{
                Newstr += str[i - 1] + "“";
            }
        }
        return Newstr.substring(0, Newstr.length() - 1);
    }