liuxiuhao

 

        double a = 345.0;
        Object b = a;
        NumberFormat n=NumberFormat.getInstance(); 
        n.setParseIntegerOnly(true);
        String d=n.format(b);
        long c = Long.parseLong(d);

分类:

技术点:

相关文章: