IN JAVA: Output all combinations of character variables a, b,and c, using this ordering: abc acb bac bca cab cba So if a = ‘x’,b = ‘y’, and c = ‘z’, then the output is: xyz xzy yxz yzx zxy zyxYour code will be tested in three different programs, with a, b, cassigned with ‘x’, ‘y’, ‘z’, then with ‘#’, ‘$’, ‘%’, then with’1′, ‘2’, ‘3’.
public class OutputCombinations {
public static void main (String [] args) {
char a;
char b;
char c;
a = ‘x’;
b = ‘y’;
c = ‘z’;
/* Your solution goes here */ *
*CODE WILL GO HERE*
System.out.println(“”);//ignore this
}
}
Expert Answer
An answer
PayPal Gateway not configured
PayPal Gateway not configured