Advertisement
Haulien

Untitled

Sep 21st, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public String toString() {
  2. StringBuilder str = new StringBuilder();
  3. str.append("Creature List\n");
  4.  
  5. for ( int i = 0; i < creatureList.length; i++ )
  6. {
  7. str.append(i+1);
  8. str.append(". ");
  9. str.append(creatureList[i].toString());
  10. str.append("\n");
  11. }
  12. return str.toString();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement