Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: can anybody help me to solve this question?

  1. #1
    Junior Member
    Join Date
    Oct 2020
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question can anybody help me to solve this question?

    Implement the immutable class intSet using an array to represent a set of integers in the range 1-1000. It should support public methods like -

    isMember(int x) - check whether x is a member of the set and return a boolean value

    size() - return the size of the set

    isSubSet(intSet s) - check whether s is a subset of the set

    getComplement() - return the complement set, you can assume that 1..1000 is the universal set

    union(intSet s1, intSet s2) - return the union of s1 and s2

    You may use private helper methods.
    Last edited by pandayashasvi; October 28th, 2020 at 11:29 PM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: can anybody help me to solve this question?

    Do you have any specific java programming questions?
    What have you tried?

    Be sure to wrap all posted code in code tags.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 1
    Last Post: November 4th, 2013, 05:38 AM
  2. how to solve this question ? please help me
    By pejagusta in forum What's Wrong With My Code?
    Replies: 16
    Last Post: September 23rd, 2013, 05:32 AM
  3. Need Help to Solve The 2 Question...
    By pineman in forum Java Theory & Questions
    Replies: 3
    Last Post: June 1st, 2012, 09:48 AM
  4. How i can solve this question? help me please ...
    By thecraetiveman in forum Java Theory & Questions
    Replies: 49
    Last Post: May 8th, 2012, 02:43 PM
  5. using while to solve this question !
    By deathpain in forum Java Theory & Questions
    Replies: 2
    Last Post: November 19th, 2011, 04:46 PM