上学期做了一个project,就是员工管理.
要用到文件进行存储.
具体的也不是几句话能说完的.
只要思路有了,做起来也就简单了
要用到文件进行存储.
具体的也不是几句话能说完的.
只要思路有了,做起来也就简单了
解决方案 »
- 有了方法为什么还会出现:Selection does not contain a main type。求高人帮助
- 与(&)运算问题
- cvs(急啊)
- 怎么在byte[]中动态添加byte
- 如何用正则表达式在139123213123中找出13?
- String类和StringBuffer的区别?对"String不能变StringBuffer可以改变"理解不清楚
- HttpURLConnection中的setRequestProperty("Cookie", sessionID);方法是干什么的?
- 有谁在看Robert Eckstein & Mare Loy & Dave Wood写的 Java Swing (O'REILLY)
- 转学JAVA的前提!
- 怎么将JDialog中的用户输入的数据拿到另外一个类中使用?
- java打完包之后为什么读取不了文件了?
- BufferedInputStream的问题
在Emp里加个这个
/*
* 非法输入将不改变
* */
public void update(String email,String phoneNum,String re) throws InputErrorException {
if(!email.equals("")&& email.matches("\\w+@\\w+\\.\\w+"))
this.email=email;
if(!phoneNum.equals("")&&! phoneNum.matches("\\d+")) throw new InputErrorException("the phone number is wrong !!!");
this.phoneNum=phoneNum;
if(!re.equals("")&&re.length()>256) throw new InputErrorException("re is too long ,it should less than 256 chars");
this.re=re;
}