一些比较实用的软件教材

object 转换long

 

        double a = 345.0;
        Object b = a;
        NumberFormat n=NumberFormat.getInstance(); 
        n.setParseIntegerOnly(true);
        String d=n.format(b);
        long c = Long.parseLong(d);
posted @ 2012-12-07 12:46  子灏  阅读(342)  评论(0编辑  收藏  举报

传说中的阿里云服务