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

Purdue University

AP Computer Science A: Java Programming Loops and Data Structures

Purdue University via edX


In this computer science course, you will learn the basics of programming in the Java language, and cover topics relevant to the AP Computer Science A course and exam.

This course will cover repetition statements (for, while, do-while and for-each), the array data structure, methods and recursion.

This course is for anyone interested in taking a first-level computer-programming course, particularly those who attend a school that does not provide a similar class.

No previous programming knowledge is needed, although it is recommended that learners be comfortable with the topics addressed in AP Computer Science A: Java Programming.

We are looking forward to helping you explore this exciting new world!


Unit Name or Timeframe: Repetition (2 weeks)

  • Loops (for-loop, while-loop, do-while-loop)
  • Nested loops
  • Fencepost errors
  • Infinite loops
  • IndexOutOfBounds exception

Unit Name or Timeframe: Data Structures (2 weeks)

  • Arrays and indexing
  • Memory management of data structures
  • Homogeneity
  • Array length property
  • Looping though arrays using for and for-each loops
  • Generalization
  • Two-dimensional arrays

Unit Name or Timeframe: Recursion (2 weeks)

  • Recursive functions and induction
  • Exit conditions
  • Call stack

Taught by

Sunil Prabhakar, Debbie Perouli and Phil Sands


Start your review of AP Computer Science A: Java Programming Loops and Data Structures

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.