Please watch the video to learn when to conjoin conditions with &&, then answer the following questions. Enlarge the window to view the code examples clearly. If needed, click the settings icon in the video player and set the quality to 1080p for better clarity.
public static String message(int age, boolean didConsent) {
if (age >= 18 && didConsent) {
return "You can participate in the study";
}
return "Sorry, you cannot participate";
}