Download code for CrimeLab.java missing Listing 9.2 getCrime


#1

Hi, I just downloaded the solution code for chapter 9 and noticed that the CrimeLab.Java file seems to be incomplete. All the code from Listing 9.1 and Listing 9.3 seems to be there but the part of listing 9.2 where getCrime is added is not.

This is the code that is missing from the chapter 9 file which does appear in chapter 10’s crimelab code file

public Crime getCrime(UUID id) { for (Crime c : mCrimes) { if (c.getId().equals(id)) return c; } return null; }

Not much of a problem as it’s obvious a few pages in to chapter 10 when you get to Listing 10.3 and attempt to call getCrime that it’s missing.