Please enable JavaScript to use CodeHS

Introduction to Java (Latte)

Methods

In this module, students learn how to define methods in their programs and use autograders to test if their methods are working correctly.

Lessons

3.1 Java Methods

  • Java Methods
  • Java Methods
  • Print Line Break
  • Print Java

3.2 Methods and Parameters

  • Methods and Parameters
  • Methods and Parameters
  • Line Breaks with Parameters
  • Sum
  • Multiply
  • +3 more

3.3 Methods and Return Values

  • Methods and Return Values
  • Return Value
  • Methods and Return Values
  • Double Number
  • Square
  • +1 more

3.4 Javadocs and More Methods

  • Javadocs
  • Javadocs
  • Javadoc Sum
  • Is in Range
  • Sum Range
  • +2 more

3.5 Strings Methods

  • String Methods
  • Looping Over a String
  • Yelling
  • Porky Pig
  • Triple String
  • +3 more

3.6 Strings and Characters

  • Strings and Characters
  • Chars are Numbers
  • Escape Sequences
  • Character Methods
  • Is it an Integer?

3.7 Exceptions

  • Exceptions
  • Exceptions Quiz
  • Arithmetic Exception
  • Index Out Of Bounds Exception
  • Bug Hunter

3.8 String Processing

  • String Processing
  • Finding Palindromes
  • String Concatenation
  • Fix the Sum String
  • Convert To Uppercase
  • +8 more

Courses that include this module