1 Star 1 Fork 0

CS-IMIS-23/20172313yukunpeng

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Address.java 1.32 KB
Copy Edit Raw Blame History
余坤澎 authored 7 years ago . docs:example practice
//***************************************************************
// Address.java Author:Lewis/Loftus
//
// Represents a street address.
//***************************************************************
public class Address
{
private String streetAddress,city,state;
private long zipCode;
//----------------------------------------------------------------------
//Constructor:Set up this address with the sprcified data.
//----------------------------------------------------------------------
public Address(String street,String town,String st,long zip)
{
streetAddress = street;
city = town;
state = st;
zipCode = zip;
}
//----------------------------------------------------------------------
//Returns a description of this Address object.
//----------------------------------------------------------------------
public String toString()
{
String result;
result = streetAddress + "\n";
result += city + "," + state + " " + zipCode;
return result;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/20172313yukunpeng.git
git@gitee.com:CS-IMIS-23/20172313yukunpeng.git
CS-IMIS-23
20172313yukunpeng
20172313yukunpeng
master

Search