Connecting...

This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Introduction to Java
For more information, please see full course syllabus of Introduction to Java
Introduction to Java Arrays
Lecture Description
In this lesson, our instructor Tom Quayle goes through an introduction on arrays. He starts by discussing declaring and creating an array, then referring to elements in an array. He also discuses resizing and copying arrays, passing an array to a method a
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
Since this lesson is not free, only the preview will appear on your website.
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
0 answers
Post by Jim Tang on December 22, 2015
for my question below, i found "static" means shared by the class as a whole, rather than by individual objects of that class. i get how that would be pertinent to stuff with numOfMembers, where this data field is part of the class as a whole, and of static methods that involve numOfMembers.
but how would that be relevant to public static double findAverage(int[] nums)? it doesn't really seem like we are creating objects, so what is the meaning of static in the findAverage case?
0 answers
Post by Jim Tang on December 21, 2015
hey tom!
what does the static mean when it's used in a method?
ex. public static double findAverage(int[] nums)
1 answer
Sun May 18, 2014 10:22 PM
Post by Lucas Davis on May 10, 2014
How could I create an array with letters, such as roman numerals, and translate them into an int value?
1 answer
Sat Sep 7, 2013 10:56 PM
Post by Joyce Choi on August 30, 2013
In the example for passing an array to a method could you have just created sum as a double in the first place instead of casting it as a double later on?
10 answers
Wed Jul 10, 2013 12:56 PM
Post by M C on July 5, 2013
You do not present nor demo code for a two-dimensional array. Not good.