01Chapter 1: Build Conditions That Evaluate to true or falseA condition is a test that gives either true or false. In Java, boolean is the type that holds those two values. For example, score >= 70 is true when score is 85. The operator >= means “greater than or equal to.” To test whether two numbers are equal, use ==. A single = stores a value instead.2 min read
03Chapter 3: Use Arrow-Style Cases That Do Not Fall ThroughA switch statement picks an action based on one value. That value is called the selector. Each case names a value to match. The default rule runs if no case matches.1 min read