Boolean Expressions and If Statements

  • 15%-17.5% of AP Test
if (true) {
    System.out.println("Hi");
}

//true and not false so system prints out "Hello"
if (true && !false) {
    System.out.println("Hello");
}

Homework

2009 FRQ 3b 2017 FRQ 1b 2019 FRQ 3b