how to make all possible power set(or subset) from arrayList objects?
问题 Say I have the following class: class A { String name; Double value; } and a list of the above class objects which might have: [{f 2.1}, {c 1.1}, {a 0.3}... and so on] [{n 0.5}, {f 1.9}, {x 0.1}, {a 1.9}, {b 1.1}... and so on] ... and so on all I want is to do the followings: 1. Building power subsets from the internal list items(N.B: skip the single subsets). 2. Push the subset in another List as an object of the above class A like this: a. if f,c is a subset of 1st element then f,c would be