首页 > 其他 > 详细

Address类

时间:2016-03-14 21:49:14      阅读:291      评论:0      收藏:0      [点我收藏+]

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();
}
}技术分享

Address类

原文:http://www.cnblogs.com/140302528yuyue/p/5277116.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!