java基础
共 2 篇文章
jxl将xml转换成excel
public class Excel { static String xml_path=""; static String[] days; static String server=""; //读取配置文件信息 static{ InputStream is=Excel.class.getResourceAsStream("config.properties"); Properties p=new Properties(); try { p.load(is); xml_path=p.getProperty("xml_path").trim(); server=p.getProperty("se…
2012-03-06 16:30 · java基础 · Java · XML · Excel
java Math.round()
public class MathTest { public static void main(String[] args) { System.out.println("小数点后第一位=5"); System.out.println("正数:Math.round(11.5)=" + Math.round(11.5)); System.out.println("负数:Math.round(-11.5)=" + Math.round(-11.5)); System.out.println(); System.out.println("小数点后第一位<5"); System.out.println…
2011-12-09 11:10 · java基础