Question: Which of the following statements correctly outputs the names of voters who live in district 6 and all voters who live in district 7? a.
Which of the following statements correctly outputs the names of voters who live in district 6 and all voters who live in district 7?
a. if(district == 6 || 7)
System.out.println("Name is " + name);
b. if(district == 6 || district == 7)
System.out.println("Name is " + name);
c. if(district = 6 && district == 7)
System.out.println("Name is " + name);
d. Two of these
Step by Step Solution
3.58 Rating (166 Votes )
There are 3 Steps involved in it
b ifdistric... View full answer
Get step-by-step solutions from verified subject matter experts
