Am so new to this Can someone please help me understand why this method is returning null?
public Crime getCrime(UUID id){
for (Crime crime: mCrimes){
if (crime.getId().equals(id)){
return crime;
}
}
return null;
}
Am so new to this Can someone please help me understand why this method is returning null?
public Crime getCrime(UUID id){
for (Crime crime: mCrimes){
if (crime.getId().equals(id)){
return crime;
}
}
return null;
}