Skip to content

Instantly share code, notes, and snippets.

@SeungUkLee
Created March 10, 2018 11:39
Show Gist options
  • Save SeungUkLee/0f48a8910f0d961b88670dfce200dc6d to your computer and use it in GitHub Desktop.
Save SeungUkLee/0f48a8910f0d961b88670dfce200dc6d to your computer and use it in GitHub Desktop.
@Override
public String toString() {
return new StringBuilder("Product{")
.append("id=").append(id)
.append(", name='").append(name).append('\'')
.append(", price=").append(price)
.append('}').toString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment