Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Java Arrays Course

via Treehouse

Overview

Prepare for a new career with $100 off Coursera Plus
Gear up for jobs in high-demand fields: data analytics, digital marketing, and more.

Arrays are a container object that allow you store many values of the same type in a single variable

What you'll learn

  • Creating Arrays
  • Looping
  • Sorting
  • Varargs

Syllabus

Creation

Learn how to declare and initialize arrays

Chevron 7 steps
  • Meet Arrays

    2:35

  • Declaring Arrays

    4:44

  • Declaration

    2 questions

  • Accessing Items

    5:45

  • Accessing Items

    3 questions

  • Array Literal Shortcut

    3:49

  • Create an array literal

    1 objective

Iteration

Learn various ways of iterating over an array in it's entirety

Chevron 8 steps
  • Enhanced For Loop

    5:14

  • Review Enhanced For Loop

    2 questions

  • Ye Olde Unenhanced For Loop

    13:04

  • Looping Like These Programmers

    1 objective

  • Multidimensional Arrays

    7:25

  • Review Multidimensional Arrays

    2 questions

  • Looping Over 2d Arrays

    8:02

  • Review Looping over 2d arrays

    1 question

Gotchas and Wins

Not everything about arrays can be amazing. Let's look at some difficulties you will encounter

Chevron 7 steps
  • Adding and Removing Items Means Copying

    7:57

  • Why copy?

    2 questions

  • Sorting

    7:21

  • Comparator

    1 question

  • Array Usage in Method Declarations

    9:35

  • i < videos.length

    1:16

  • Wrap up

    3 questions

Reviews

Start your review of Java Arrays Course

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.