Created
March 10, 2018 11:39
-
-
Save SeungUkLee/0f48a8910f0d961b88670dfce200dc6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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