摘要:
Java经典实例(第二版)1. 获取环境变量Java代码 1. System.getenv("PATH"); 2. System.getenv("JAVA_HOME"); 2. 获取系统属性Java代码 1. System.getProperty("pencil color"); // 得到属性值 阅读全文
posted @ 2016-09-09 00:09
王泽君
阅读(169)
评论(0)
推荐(0)
摘要:
package com.forget406.study; import java.awt.GraphicsEnvironment; public class CustomeFontReading { public static void main(String[] args) { String[] 阅读全文
posted @ 2016-09-09 00:07
王泽君
阅读(558)
评论(0)
推荐(0)
摘要:
有些财务业务场景是需要把数字多余的0去掉的。 可以这么写 private String getRealData(BigDecimal num) {if (num == null) {return "0";}String value = num.stripTrailingZeros().toStrin 阅读全文
posted @ 2016-09-09 00:04
王泽君
阅读(96)
评论(0)
推荐(0)

浙公网安备 33010602011771号