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 4 of 4

Thread: How to create sets for array values

  1. #1
    Junior Member
    Join Date
    Sep 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Create subsets

    Hello.. I want to create subsets of the array elements.. Suppose i have 10 elements in an array... And i want to create 5 sets from that array..so answer will be {1,2},{3,4}... And so on...please guide me

    Hello.. I want to create subsets of the array elements.. Suppose i have 10 elements in an array... And i want to create 5 sets from that array..so answer will be {1,2},{3,4}... And so on...please guide me

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

    Default Re: How to create sets for array values

    What container will contain the subsets?

    What have you tried?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Sep 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to create sets for array values

    its simply an array and i want to extract items from that array as subsets

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How to create sets for array values

    Where and how are the subsets stored when they are extracted?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Nodes contain array data sets in a linked list. Need help iterating
    By Bawnawgwa in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 10th, 2014, 06:11 PM
  2. how to find 2nd largest array if array values like{10,20,92,81,92,34}
    By anjijava16 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 2nd, 2013, 04:59 PM
  3. create an array of 99 random values; sorted and the printed
    By appoldk@yahoo.com in forum Java Theory & Questions
    Replies: 1
    Last Post: December 2nd, 2012, 04:57 PM
  4. Implementing basic operations on sets using Array Lists
    By Bucs1992 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 18th, 2012, 03:53 PM
  5. [SOLVED] Maps and adding to sets as values
    By mds1256 in forum Collections and Generics
    Replies: 3
    Last Post: March 26th, 2010, 09:12 AM