Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Java Annotations!
You have completed Java Annotations!
Preview
With our @Doc annotation written, we can now use it like any other. In this video, we'll apply the annotation to the MathUtils class and a few of its methods.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
First, we'll need to import
the annotation itself,
0:00
import com.teamtreehouse.docgen.Doc.
0:01
We'll start by applying
the annotation to the class itself.
0:05
And in this annotation, we'll need
to include just a description since
0:09
parameters and
return types will not apply to the class.
0:12
You can list the annotation on separate
lines if you'd like to keep it well
0:16
formatted.
0:19
I'll say that this is a Utility class for
commonly used math functions.
0:20
Notice that I've had to
explicitly list D-E-S-C.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up