Greetings!
I am working on “Cumulative Project 4” of “Build Android Apps with Java” and looking at steps 10 and 11 (out of 21).
Access this exercise below.
In the code below, from this exercise (steps 10 and 11), it seems like a non-static method (generateRandomNumber()) is being called in a static way in that it is being called, but not on an object instance (int n = generateRandomNumber(questions.size() - 1).
How does this work? I feel like the answer is obvious and has been explained in coursework, but something just isn’t connecting for me here.
Thank you in advance for any assistance!
Mike