Question: help QUESTION 18 Replace the variables highlighted in yellow public class Main AAA public BBB void main(String[] args) { String greeting = Hi; CCC farewell
QUESTION 18 Replace the variables highlighted in yellow public class Main AAA public BBB void main(String[] args) { String greeting = "Hi"; CCC farewell = "Bye"; int x = 1; if (x DDD 1){ System.out.print(EEE); } else{ System.out.print(farewell); } System.out.println(", " + "Congrats!"); } } with what will make the program show the following output Hi, Congrats
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
