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 Arrays!
You have completed Java Arrays!
Preview
You are probably wanting to use these right? Let's learn how and also take a look at varargs.
Learn More
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
You'll definitely start seeing them return
from methods in the standard library,
0:00
and I'm guessing you'll probably
want to start using their abilities.
0:02
When you declare your methods,
you have a couple of options
0:05
to help users of your program,
or API, understand what you're expecting.
0:08
Now, aside from the typical type
declaration, there's a very clear pattern
0:13
I'd like to show off, so let's get to it.
0:17
In the standard boilerplate
0:21
Java program, you notice
that there's a public static void main.
0:22
You can see what it looks like
to declare a method that expects an array.
0:26
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