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: Union Coding Hashmap

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Union Coding Hashmap

    We have two map

    map m1 = { a= [1], b=[2], c=[3] }
    map m2 = { a= [3] , b = [4] , d = [5]}

    output

    m3 = { a = [1,3 ] , b = [2,4] c= [3] , d=[5] }

    please help me to code this


  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: Union Coding Hashmap

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

Similar Threads

  1. Project - Manipulating ArrayList (Union, Intersect, etc)
    By NewStudent709 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 17th, 2012, 02:56 PM
  2. Replies: 2
    Last Post: February 19th, 2012, 07:36 AM
  3. [SOLVED] UNION OF TWO INTEGER ARRAYS... HELP?
    By Medo Almasry in forum What's Wrong With My Code?
    Replies: 16
    Last Post: July 23rd, 2011, 03:28 PM
  4. How to form a rectangle from the union of two Rectangles.
    By javapenguin in forum What's Wrong With My Code?
    Replies: 8
    Last Post: September 3rd, 2010, 07:22 AM
  5. help: union of two array,.. kinda problem
    By sanfor in forum Collections and Generics
    Replies: 2
    Last Post: November 29th, 2009, 02:33 PM