Listing 9.3


I understand what the code is doing (including the correction) however, the heading says: Generating crimes (

Where in Isn’t CrimeLab a class? Shouldn’t this code be going into Is that a typo?


As I understood (also you can see in Figure 9.2), CrimeLab is a Model which needs to have all crime information, that’s why Listing 9.3 generates and stores crimes in
CrimeActivity is just supposed to handle(control) this.


Thanks. I guess I’ll have to go back and re-read that section a fully understand what they mean by “Model” and this whole thing of “Singleton”.