Java help


#1

This probably is basic java knowledge but I am hoping to get some help here.

Page 141 (CrimeFragment.java):

Why can we operate on mCrime without calling new Crime()?


#2

That’s already been taken care of in onCreate() method.

@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mCrime = new Crime(); }


#3

Thank you so much!
You helped me realize I somehow managed to skip over that. I’m glad it was just that easy.