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类

相关文章:

  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-01-18
  • 2022-12-23
  • 2021-06-22
猜你喜欢
  • 2021-11-27
  • 2021-09-26
  • 2021-08-07
  • 2021-12-15
  • 2021-05-07
  • 2021-12-21
相关资源
相似解决方案