Minor fixes in Step Builder

This commit is contained in:
Dmitriy Zarubin
2015-08-10 10:20:13 +03:00
parent f52d7d3dbc
commit 0beb19426c
2 changed files with 3 additions and 2 deletions

View File

@ -71,9 +71,9 @@ public class Character {
StringBuilder sb = new StringBuilder();
sb.append("This is a ");
sb.append(fighterClass != null ? fighterClass : wizardClass);
sb.append(" named a ");
sb.append(" named ");
sb.append(name);
sb.append(" armed ");
sb.append(" armed with a ");
sb.append(weapon != null ? weapon : spell != null ? spell : "with nothing");
sb.append(abilities != null ? (" and wielding " + abilities + " abilities") : "");
sb.append(".");