那个Java工程里还没有个常量类
宝贵的人类的经验根本没有长篇大论,真正的好东西都是拿起来就用。
/**
* 系统名
*/
public static final String OS_NAME = System.getProperty("os.name");
/**
* Java版本
*/
public static final String JAVA_VERSION = System.getProperty("java.version");
/**
* 系统相关的换行符
*/
public static final String LINE_SEPARATOR = System.getProperty("line.separator");
/**
* 系统相关的文件路径分隔符 \或/
*/
public static final String FILE_SEPARATOR = File.separator;
/**
* IP校验规则
*/
public static final String IPRexExp = "^((25[0-5]|2[0-4]\\d|[1]{1}\\d{1}\\d{1}|[1-9]{1}\\d{1}|\\d{1})($|(?!\\.$)\\.)){4}$";
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。