instanceof判断一个实例是不是一个类的实例
private static final Throwable Exception = null;
/** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub HibernateException he = new HibernateException(Exception); NestableRuntimeException nre = new NestableRuntimeException(); NestableException ne = new NestableException(); &
用的还是比较多,有时候就有点忘,所以记下来
//bornNewNumber方法来自同事之手。
public String bornNewNumber(Object object) { String number = ""; int y = 0; int year = (new Date().getYear()) + 1900; String maxValue = (String) object; if (maxValue != null && maxValue.substring(