public class nestedif { public static void main(String[] args) { // Suppose that Java lost it's && and || operators. // Write a selection statement that simulates $&&$. // Do NOT use && and || operators. boolean v1 = true; boolean v2 = false; boolean result; if (v1==true) // if v1 is true if (v2==true) // and if v2 is true result=true; // then result is true else // otherwise (if v2 not true) result=false; // result is false else // otherwise (if v1 not true) result=false; // result is false } }