public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* @param address the address to set
*/
public void setAddress(String address) {
this.address = address;
}
/**
* @return the address
*/
public String getAddress() {
return address;
}
}
再來看看測(cè)試代碼:
Test.java
package com.zjut.yunfeiyang;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class Test {
public Test() {
}
/**
* @param args
*/
相關(guān)推薦:
等考二級(jí)JAVA:Java+Flex整合應(yīng)用簡(jiǎn)單示例 等考二級(jí)JAVA:struts+spring實(shí)現(xiàn)的登陸實(shí)例源碼 考試吧:2010年上半年計(jì)算機(jī)等級(jí)考試備考專題