return result
at the end of the methodvoid
print()
Fantastic! The method specifies a return type but doesn't return anything. We can either add a return statement or use void
.
So close! The method specifies a return type but doesn't return anything. We can either add a return statement or use void
.