Please enable JavaScript to use CodeHS

TCH323BE2 Introduction to Java Programming 1

Methods

Methods are bits of code that perform a specific task. This module teaches you how to define methods in your programs and uses the autograder to test if your methods are working correctly.

Lessons

2.1 Java Methods

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

2.2 Methods and Parameters

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

2.3 Methods and Return Values

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

2.4 Javadocs and More Methods

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

2.5 Strings Methods

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

2.6 Strings and Characters

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

2.7 Exceptions

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

2.8 String Processing

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

2.9 Unit Quiz

  • Intro Java Unit 2

Courses that include this module