Question: What will be printed? public class Test7 { public static void main(String[] args) { boolean cleanedRoom = true; boolean didHomework = false; if (cleanedRoom ||
What will be printed? public class Test7 { public static void main(String[] args) { boolean cleanedRoom = true; boolean didHomework = false; if (cleanedRoom || !didHomework) System.out.println("You can go out"); else System.out.println("No, you can't go out"); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
