L3.2: Logical Expressions: Logical operators - not !

PHOTO EMBED

Mon Oct 02 2023 02:22:17 GMT+0000 (Coordinated Universal Time)

Saved by @TestProSupport

public class Main {

    public static void main(String[] args) {
        boolean enrolledInAutomationClass = true; 

        boolean notEnrolledInAutomationClass = !enrolledInAutomationClass;

        System.out.println("Is the student enrolled in the automation class? " + notEnrolledInAutomationClass);
    }
}
content_copyCOPY