Question: E | 2.142: Outputting all combinations ACTIVITY Output all combinations of character variables a, b, and c. If a-x. b y, and c-2, then the

 E | 2.142: Outputting all combinations ACTIVITY Output all combinations of

E | 2.142: Outputting all combinations ACTIVITY Output all combinations of character variables a, b, and c. If a-x. b y, and c-2, then the output is: xyz xzy yxz yzx zxy zyx Note: If outputting multiple character variables with one statement, the argument for System.out.print0 should start with+ Your code will be tested in three different programs, with a, b, c assigned with 'X, y,'z, then with .#, s: %, then with '1' 2, 3. 1 import java.util.Scanner; 2 public class OutputCombinations( 3 public static void main (String [ args) ing [1 C Scanner scnr new Scanner (System.in); char a; char b; char c; a scnr.next().chart () b scnr.next).charAt (0); 10 12 14 16 scnr.next).charAt (0); " Your solution goes here/ System.out.printin() 17 Run X Testing with x.Y. 'z' s. See highlights bel ow Your output Expected output xyz xzy yxz yzx zxy zyx

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!