Please enable JavaScript to use CodeHS

Texas Computer Science 2

Data Structures

Students learn basic data structures in Java including arrays, ArrayLists, 2 dimensional arrays and HashMaps.

Lessons

7.1 What are Data Structures?

  • What are Data Structures?
  • Quiz: Data Structures
  • Data Structures Everywhere

7.2 Introduction to Arrays

  • Introduction to Arrays
  • Quiz: Arrays
  • Making an Array
  • Make an Empty Array
  • Indexing Into an Array
  • +3 more

7.3 Using Arrays

  • Using Arrays
  • Quiz: Using Arrays
  • Iterating Over an Array
  • Sum Array
  • Array Out of Bounds
  • +9 more

7.4 Enhanced For Loops

  • Enhanced For Loops
  • Enhanced For Loop
  • Enhanced For Loop
  • Classroom Array
  • Insert into an Array
  • +7 more

7.5 ArrayList Methods

  • ArrayLists
  • Quiz: ArrayList
  • Hello World ArrayList
  • ArrayList and Java Primitives
  • ArrayList Size Method
  • +5 more

7.6 Arrays vs ArrayLists

  • Arrays vs ArrayLists
  • Quiz: Arrays vs ArrayList
  • Expanding Array
  • Improving Expanding Array
  • Insert at Beginning of the Array
  • +2 more

7.7 Additional Loop Examples

  • Additional Loop Examples
  • Additional Loop Examples
  • For and While Loops
  • ArrayList Traversing Error
  • Traversing ArrayLists Simultaneously
  • +3 more

7.8 The List Interface

  • The List Interface
  • The List Interface Quiz
  • Reverse the List
  • Summer Reading Short List

7.9 2D Arrays (Matrices or Grids)

  • 2D Arrays
  • Quiz: 2D Arrays
  • Nested Loops
  • Ice Cream Combos
  • First 2D Array
  • +5 more

7.10 Traversing 2D Arrays

  • Traversing 2D Arrays
  • Quiz: Traversing 2D Arrays
  • Traversing Gradebook
  • Linear Search 2D Arrays
  • Row vs. Column Major
  • +6 more

7.11 HashMaps

  • HashMaps
  • Quiz: HashMaps
  • The Phonebook
  • Word Counts
  • Word Counts Reflection

7.12 Binary

  • Number Systems
  • Number Systems Quiz
  • Converting Octal to Decimal
  • Converting Binary to Decimal
  • Using Binary
  • +4 more

7.13 Ethical Issues Around Data Collection

  • Ethical Issues Around Data Collection
  • Ethical Issues Around Data Collection
  • The Curly Fry Conundrum
  • Reflection
  • Guidelines on Ethical Data Use
  • +2 more

7.14 Data Structures Quiz

  • Data Structures Quiz

Courses that include this module