0

i really need help on this, i need code for this project, please help me, thanks in advance..

(Power Set) Given an input set with entries separated by commas, output all the possible sets that can be generated from this set.
Sets are described in the file power.txt
The lines consist of a comma-separated non-repeating list of entries which will become the elements of the set. Output is to the Text Area GUI component as shown by the sample dialog. The number of elements in a set is undefined.

Sample Dialog
power.txt
mario,luigi,princess
1,2,3,4
jess

JTextArea Output
Powerset of set {mario,luigi,princess} is
{null},{mario},{luigi},{princes},{mari...

Powerset of set {1,2,3,4} is
{null},{1},{2},{3},{4},{1,2},{1,3},{1,...

Powerset of set {jess} is
{null},{jess}

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Chaster
0

You need to show us what you have done before we help you. We will not just give you code. Also ask specific questions when, don't just tell us you can't do it.

0

I'm sure Google will help you out. Try searching for 'Power Set Java'
Why do you take OOP courses (or whatever) if you don't want to learn?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.