By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,967 Members | 2,211 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,967 IT Pros & Developers. It's quick & easy.

arrayList Method

P: 4
A method that creates a total of "n: elements (all different if yes), their combinations of 1-2-3 .... n without repetition
N = {a, b, c}
Comb.1: a | b | c
Comb.2: ab | bc | ac
Comb.3: abc

this I did so far please help!

String combine(ArrayList<Integer> a, String b){
String c="";
System.out.println(b); //found a combo
return "";
//append characters to string b
for(int x=0;x<a.size();x++){
return c;
Nov 4 '18 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.