-
Array help
Hey guys,
I have to do this entire program from scratch again since I did it wrong and have no clue to make it work properly. Can you guys give me some help with the code for this program?
Write a class Array that contains the field
private int[] data;
Array also contains the constructor
public Array(int[] in)
that copies in onto data by eliminating duplicate elements.
Array has 2 methods
public ArrayList getSubsets()
and
public ArrayList recursiveGetSubsets()
that return the set of all subsets of data.
You must also write a driver that prompts the user to enter a line of integers and
prints out the set of it subsets.
-
So, what is YOUR approach? What have you learned is wrong with what you did before? Where do you need to make corrections?
Similar Threads
-
By angelito in forum VB Classic
Replies: 1
Last Post: 11-21-2005, 06:16 AM
-
Replies: 6
Last Post: 11-01-2005, 09:05 AM
-
By kanakatam in forum Java
Replies: 2
Last Post: 04-15-2005, 09:06 PM
-
By Shaitan00 in forum Java
Replies: 3
Last Post: 04-08-2005, 05:49 AM
-
By Mark Alexander Bertenshaw in forum VB Classic
Replies: 10
Last Post: 06-16-2000, 05:34 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks