943,648 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 495
  • Java RSS
Oct 21st, 2008
0

java problem

Expand Post »
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}
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rione is offline Offline
1 posts
since Oct 2008
Oct 21st, 2008
0

Re: java problem

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.
Featured Poster
Reputation Points: 533
Solved Threads: 53
Senior Poster
jasimp is offline Offline
3,593 posts
since Aug 2007
Oct 22nd, 2008
0

Re: java problem

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?
Last edited by Chaster; Oct 22nd, 2008 at 9:32 am.
Reputation Points: 12
Solved Threads: 3
Junior Poster in Training
Chaster is offline Offline
68 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Hi .Facing problem while displaying LinkedList (API) element using Iterator
Next Thread in Java Forum Timeline: Comparing Files by hash code.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC