Search:

Type: Posts; User: jason3460

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    1,996

    Re: Union and Intersection methods (SetADT)

    What are your ideas for how to implement each of these two methods?
    Maybe combine both arrays and then iterate through to find similar values and removes them ?

    Do you have two arrays of int...
  2. Replies
    6
    Views
    1,996

    Re: Union and Intersection methods (SetADT)

    package DSA2;

    public class TestSet
    {
    public static void main(String[] args)
    {
    SetADT set1 = new SetADT();
    SetADT set2 = new SetADT();

    set1.add(1);
  3. Replies
    6
    Views
    1,996

    Union and Intersection methods (SetADT)

    Hey, so i have this SetADT, and i need to add two methods, Union and Intersection.


    The Union method will return a union of the two sets as an array to the calling program (no duplicates...
Results 1 to 3 of 3