将数字转换格式后输出

decimalForm 方法中,想要将double 7777.54转换到7 777,54

但是我转换出来的值是 ** 7 777 54** 。怎么办?期望的结果是 7 777,54

public static String decimalForm(double value){

            DecimalFormat df = new DecimalFormat("#,###,###.00");
            String formatted_value = df.format(value).replaceAll(",", " ").replace(".", ",");

            return formatted_value;
        }

试了一下,是正确的呀

    double db = 7777.34;
    Log.d("RESULT",decimalForm(db));//7 777,34