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()
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?
By angelito in forum VB Classic
Last Post: 11-21-2005, 07:16 AM
Last Post: 11-01-2005, 10:05 AM
By kanakatam in forum Java
Last Post: 04-15-2005, 10:06 PM
By Shaitan00 in forum Java
Last Post: 04-08-2005, 06:49 AM
By Mark Alexander Bertenshaw in forum VB Classic
Last Post: 06-16-2000, 06:34 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center