您的位置:首页 > 其它

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();
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: