This is a premium course. To view and assign premium course, you must upgrade your account
Arrays allow programmers to store multiple values in a single variable
Introducing Arrays
Create an array and populate it with values
Learn to create an array and how to initialize arrays
Traversing an array means to visit each element in the array sequentially. We may modify these values or simply read them depending on what we are trying to accomplish.
Traversing an array involves visiting each element one at a time
The length of an array returns the number of elements in the array. We can use this to tell our for loops how many times to repeat
You should from now on, always use array.length when traversing an array
Here begins our segment on practicing arrays through building array helper methods
Here we begin practicing arrays by doing some exercises
Make a nice array print method
It will be useful to make a method that prints every element of our array
Create a sum method that returns the result of adding together every value of an integer array
Summing an Array means adding each element together and returning the result
Use the sum method you just created to calculate the average value of an array of integers
We can use our sum method to create an averaging method
Write a method that checks if a character array contains a given input character
Check if an array contains an element and returning the index number of that element.
Here we will start to look at sorting algorithms for arrays
Array sorting is very important in computer applications. In this lesson we will make a swap method to make sorting easier
A sorting algorithm that inserts each element of an array into a new array in its proper position
Learn the insertion sort algorithm