摘要:
int num = 1; Integer i = 1;将Integer转换成String String string = i.toString();将String转换成Integer(注意:只能是数字类型的字符串) java.lang.NumberFormatException: 数字格式异常 St 阅读全文
摘要:
Date直接获取当前时间Date date = new Date();System.out.println("当前时间:"+date); long time = date.getTime();//将当前时间转换成毫秒值 System.out.println("当前时间毫秒值:"+time); /构造 阅读全文