Suggestion (error?), making deletion permanent


#1

in Listing 18.4 we created the method CrimeLab.deleteCrime(int crime); however once a crime is deleted, it reappears whenever CriminalIntent is restarted. I suggest modifying the method as follows:

	public void deleteCrime(Crime c) {
		mCrimes.remove(c);
		this.saveCrimes(); // added this to make deletions permanent
	}

Am I going to break something down the road, by doing this? Would it be better form to call saveCrimes() as above, or as CrimeLab.saveCrimes()?

Thanks!
-Andy