Skip to content
KCL TechAcademy
HomeCoursesSign in
Menu
HomeCoursesSign in
  1. Courses
  2. /Java Workshop
  3. /Week 3

Conditionals and Booleans

In Week 3, we explored how to make programs respond differently depending on certain conditions.

Topics covered: • Boolean values (true and false) • Comparison operators (==, !=, <, >, <=, >=) • Logical conditions • if statements • if-else statements • else-if statements • Using conditions with user input through Scanner • Comparing Strings using .equals()

By the end of the session, students were able to write programs that make decisions based on user input and different conditions.

Practical exercises included building a Ticket Checker and a Shop Discount Calculator.

Your next step

Take your time with the material. Mark it complete when you’re ready.

Sign in to track progress

Related to this lesson

← Week 2 - User InputIterations →
KCL Tech AcademyLearn. Build. Share what you know.