We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b8717 commit ca59c97Copy full SHA for ca59c97
builder/src/main/java/com/iluwatar/Hero.java
@@ -42,6 +42,7 @@ public Weapon getWeapon() {
42
public String toString() {
43
44
StringBuilder sb = new StringBuilder();
45
+ sb.append("This is a ");
46
sb.append(profession);
47
sb.append(" named ");
48
sb.append(name);
@@ -62,7 +63,7 @@ public String toString() {
62
63
sb.append(armor);
64
}
65
if (weapon != null) {
- sb.append(" and wielding ");
66
+ sb.append(" and wielding a ");
67
sb.append(weapon);
68
69
sb.append(".");
0 commit comments