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: I need help answering this

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

    Default I need help answering this

    This method merges arr1 and arr2 into a single array in alternating order. If arr1 and arr2 do not have the same amount of values, the extra values are just appended to the end of the array returned to by the method.
    So if I'm combining these two arrays:

    Array 1: {0,1,2,3,4}

    Array 2: {5,6,7}

    Output: {0,5,1,6,2,7,3,4}

    Could really use help.
    Thanks in Advance

  2. #2
    Junior Member
    Join Date
    Jan 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need help answering this

    Sorry, but what exactly is your question?
    if u combining these 2 arrays, u just need to create third array with combined length of previous two arrays.

Similar Threads

  1. Please help me by answering a few questions!
    By lakhn008 in forum Totally Off Topic
    Replies: 2
    Last Post: May 27th, 2014, 03:11 AM

Tags for this Thread