chapter 5 answers

You could have just included the _modulus_ operation in the line above.  E.g. Something like...
```java
sb.append((char) (letter ^ key.charAt(keyIndex % key.length())));
```