?? choicebean.java
字號:
/**
*
*/
package cn.edu.nwpu.MobileCampusServer;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
/**
* @author NickJava
*
*/
public class ChoiceBean {
private String electiveName;
private String place;
private String time;
private String teacher;
public ChoiceBean() {
}
public String getElectiveName() {
return electiveName;
}
public void setElectiveName(String electiveName) {
this.electiveName = electiveName;
}
public String getPlace() {
return place;
}
public void setPlace(String place) {
this.place = place;
}
public String getTeacher() {
return teacher;
}
public void setTeacher(String teacher) {
this.teacher = teacher;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public void serialize(DataOutputStream dos)
{
try{
dos.writeUTF(electiveName);
dos.writeUTF(place);
dos.writeUTF(time);
dos.writeUTF(teacher);
}catch(IOException ex){
}
}
public static ChoiceBean deserialize(DataInputStream dis)
{
ChoiceBean student = new ChoiceBean();
try{
student.electiveName = dis.readUTF();
student.place = dis.readUTF();
student.time = dis.readUTF();
student.teacher = dis.readUTF();
}catch(IOException ex){
}
return student;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -