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

Thread: Merge two arrays of integers

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

    Default Merge two arrays of integers

    Array1: a1, a2, a3
    Array2: b1, b2, b3

    Merged as: a1, b1, a2, b2, a3, b3.

    The following code does not work, only gets 000000.
    [highlight=Java]









    [/highlight=Java]


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Merge two arrays of integers

    Please read the Announcement topic at the top of the sub-forum for new user FAQs and instructions on how to properly post code.

    I don't know how you're getting anything. The code you posted should be getting compiler errors. Are you seeing them? Fix them if you can. If you can't or if the code has changed, post the errors or updated code.

  3. #3
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: Merge two arrays of integers

    What code?
    Improving the world one idiot at a time!

Similar Threads

  1. Mail Merge
    By srkmca07 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: September 23rd, 2013, 11:46 PM
  2. Merge Sort
    By tomlisi92 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 28th, 2013, 10:00 AM
  3. [SOLVED] Writing Integers to .txt File; Returning Random Characters Instead of Integers
    By verbicidalmaniac in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: March 8th, 2011, 09:42 PM
  4. Determine the two smallest integers from a set of user input integers
    By bpontin in forum Loops & Control Statements
    Replies: 4
    Last Post: October 17th, 2010, 06:38 PM
  5. how to merge my OO with GUI
    By zyspt in forum AWT / Java Swing
    Replies: 1
    Last Post: May 18th, 2010, 03:28 PM