Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 3.4 Javadocs and More Methods

Description

This lesson introduces Javadocs, which is a standard way to comment Java code. Students will also complete various coding exercises to practice creating methods with return values. By the end of the lesson, students will be able to write well-structured and documented code using methods and Javadocs.


Objective

Students will be able to:

  • Demonstrate an understanding of the purpose and syntax of Javadoc comments
  • Analyze a given program for proper documentation
  • Compare and contrast programs with good documentation against programs with poor documentation
  • Write methods that perform specific calculations and return values
  • Use Javadoc comments to document methods