Fill in safeName so that it returns the dog's name — or the text unknown when it is given null instead of a dog.
safeName
unknown
null
The program prints Rex and then unknown. Without the guard the second call would crash with a NullPointerException.
Rex