Please enable JavaScript to use CodeHS

Texas Computer Science 2

Methods

Students learn how to define and test methods in their Java programs.

Lessons

5.1 Java Methods

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

5.2 Methods and Parameters

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

5.3 Methods and Return Values

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

5.4 Javadocs and More Methods

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

5.5 Strings Methods

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

5.6 Strings and Characters

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

5.7 Exceptions

  • Exceptions
  • Exceptions Quiz
  • Arithmetic Exception
  • Index Out Of Bounds Exception
  • Bug Hunter
  • +4 more

5.8 String Processing

  • String Processing
  • String Processing
  • Finding Palindromes
  • String Concatenation
  • Fix the Sum String
  • +10 more

5.9 Methods Quiz

  • Methods Quiz

5.10 File Handling

  • Reading a File
  • Read From File
  • Reading a Known Size File
  • Print Playlist
  • File Path
  • +2 more

Courses that include this module