已迁址http://www.cnblogs.com/live365wang/
DecimalFormat df = new DecimalFormat( "0.## "); Float si=mfile.getSize()/1024f/1024f; System.out.println(df.format(si)+"M");
Powered by: BlogJava Copyright © 已迁址