See point 2 in the link above, quoted from the link:
The return type—the data type of the value returned by the method, or void if the method does not return a value.
See the rest of that page (and further) to see method declarations with are defined with void.
just looking to pass a class
To pass a class, or to learn...because these are different goals. Having a goal to learn will usually result in passing (and you come away with something), just doing something to pass and you miss out on the best part.