Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 3.1 Java Methods

Description

In this lesson, students will explore methods in Java. Methods help us organize our code into reusable parts, so we don’t have to write the same code over and over again. This makes code easier to understand and manage.


Objective

Students will be able to:

  • Explain the purpose of methods
  • Create their own methods
  • Utilize methods to solve simple problems

Activities

These are all the activities included in the lesson

3.1.1 Java Methods
3.1.2 Java Methods
3.1.3 Print Line Break
3.1.4 Print Karel