📄 address.java
字号:
/*
* Created on 2004-7-1
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package com.ejbstudy;
/**
* @author haoyulong
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class Address {
String city=null;
String street=null;
int houseno=0;
/**
* @return Returns the city.
*/
public String getCity() {
return city;
}
/**
* @param city The city to set.
*/
public void setCity(String city) {
this.city = city;
}
/**
* @return Returns the houseno.
*/
public int getHouseno() {
return houseno;
}
/**
* @param houseno The houseno to set.
*/
public void setHouseno(int houseno) {
this.houseno = houseno;
}
/**
* @return Returns the street.
*/
public String getStreet() {
return street;
}
/**
* @param street The street to set.
*/
public void setStreet(String street) {
this.street = street;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
public String toString() {
// TODO Auto-generated method stub
return city+street+Integer.toString(houseno);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -