http://localhost:8080/ssh_web/customerAction
int indexOf(String str)
返回指定子字符串在此字符串中第一次出现处的索引。
public int lastIndexOf(String str): 返回指定子字符串在此字符串中最右边出现处的索引,如果此字符串中没有这样的字符,则返回 -1
Date --> String
// 创建日期对象
Date d = Date();
//给定输出格式
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//调用方法
String str = sdf.format(d);
System.out.println(str);
――――――――――――――――
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余4页未读,立即下载