Array help


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Array help

  1. #1
    Join Date
    Apr 2006
    Posts
    1

    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.

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    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

  1. redim help !!!
    By angelito in forum VB Classic
    Replies: 1
    Last Post: 11-21-2005, 07:16 AM
  2. Dynamically allocating a 2d array
    By nnp in forum C++
    Replies: 6
    Last Post: 11-01-2005, 10:05 AM
  3. Replies: 2
    Last Post: 04-15-2005, 10:06 PM
  4. Replies: 3
    Last Post: 04-08-2005, 06:49 AM
  5. SafeArrayCopy SLOWER than iterating string array!
    By Mark Alexander Bertenshaw in forum VB Classic
    Replies: 10
    Last Post: 06-16-2000, 06: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center