Address类
2016-03-14 20:56
232 查看
class Address{
String country;
String province;
String city;
String street;
int post;
public void tell(){
System.out.println("国家:"+country+",省份:"+province+",城市:"+city+",街道:"+street+",邮编"+post);
}
}
public class Address01{
public static void main(String[] args){
Address add=new Address();
add.country="中国";
add.province="北京市";
add.city="北京市";
add.street="牛富路";
add.post=103010;
add.tell();
}
}
String country;
String province;
String city;
String street;
int post;
public void tell(){
System.out.println("国家:"+country+",省份:"+province+",城市:"+city+",街道:"+street+",邮编"+post);
}
}
public class Address01{
public static void main(String[] args){
Address add=new Address();
add.country="中国";
add.province="北京市";
add.city="北京市";
add.street="牛富路";
add.post=103010;
add.tell();
}
}
相关文章推荐
- eclipse启动无响应,停留在Loading workbench状态,或老是加载不了revert resources
- HYSBZ - 2463 谁能赢呢? (博弈) 水
- hadoop
- POJ 1064 Cable master(二分-精度)
- 由浅及深js运动框架
- 蘑菇街2016研发工程师_搬圆桌
- linux命令介绍(3)
- HDU 1541 线段树简单更新
- 装饰模式的结构
- 【转】ORACLE快速彻底Kill掉的会话
- Android开辟进修之SQLite数据存取浅析
- 搭建 CentOS 6 服务器(14) - CVS、SVN、Git
- 正则表达式匹配邮箱和手机号
- bzoj 2733: [HNOI2012]永无乡
- Ubuntu14.04安装cuda (GTX780)
- 组合继承
- uva 1203—— Argus
- 哈理工oj 2035 Diablo【BFS+DFS】
- [BZOJ3671][Noi2014]随机数生成器
- Hadoop基础知识