Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichael North
2,561 PointsSystem.Math._________
I've never gone over what this quiz talks about and I've seen the video 4 times. The question asks for the method t hat returns the greater of 2 numbers, and I have no idea what to do.
1 Answer
andren
28,558 PointsIf you are faced with a method you don't know how to use or want to accomplish something but don't know the right method then Google is your friend. Looking up documentation for various methods is a common occurrence for any professional coder, so getting used to it during your practice would not be a bad idea.
In this case you can look at the documentation for the Math class. It lists all of the methods that exist in that class, along with a description of what the method does. If you search that site for "larger of two" you'll find the correct method in no time.
Do note that the documentation will also show you what parameters the method takes in parentheses, and the various variations of the method, but for the quiz you only need to type the name of the method. You do't need to provide any values to it.