Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[W6.4H][T16-B1] Qiu Haoze #764

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

qiuhaohao
Copy link

Added Printable interface and made address, name, phone and email implement Printable

@qiuhaohao qiuhaohao changed the title [W6.4H][T16-B1] [W6.4H][T16-B1] Qiu Haoze Mar 7, 2018
default String getPrintableString(Printable... printables){
String concatenated = "";
for (Printable p : printables){
concatenated += p.getPrintableString();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string builder would be more efficient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants