Skip to lesson
MentorNxt home

Java Programming

Conditional Statements

Must-do problems: Conditional Statements

These are the classic decision problems every Java beginner should be able to solve with conditions alone, no loops. Work from Easy to Hard, run your program on every test, and open a hint only when you are stuck.

What you will learn

What you will learn

  • Turn a word problem into the right if, else-if, nested if or switch
  • Order conditions so the special cases are tested first
  • Handle boundaries, ties, negatives and invalid input
  • Pick long or double where int is not enough

Sign in to continue this lesson

Create an account to read every lesson, practise with the exercises and keep track of your progress.