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: Beginner Java problem help.

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

    Default Beginner Java problem help.

    First year university programming course, encountered the following two problems I have to solve

    Given an array of ints, print an array with the elements "rotated left"
    e.g {1, 2, 3} yields {2, 3, 1}.
    {1, 2, 3} -> {2, 3, 1}
    {5, 11, 9} -> {11, 9, 5}
    {7, 0, 0} -> {0, 0, 7}

    * Given 2 int arrays, print a new array length 4 containing all their elements. *
    e.g {1, 2}, {3, 4} -> {1, 2, 3, 4}
    {4, 4}, {2, 2} -> {4, 4, 2, 2}
    {9, 2}, {3, 4} -> {9, 2, 3, 4}

    Can anyone help? Remember this is basic I wont really understand any tricky stuff, just the basic array, string and loops.

    Thanks in advance


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Beginner Java problem help.

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

Similar Threads

  1. Beginner Java Problem Help.
    By darkr166 in forum What's Wrong With My Code?
    Replies: 11
    Last Post: February 24th, 2013, 02:47 AM
  2. Java Speech API problem very beginner
    By yugeshshrestha in forum Java Theory & Questions
    Replies: 3
    Last Post: July 4th, 2012, 12:52 PM
  3. Beginner problem with a do-while.
    By Eliijahh in forum Loops & Control Statements
    Replies: 3
    Last Post: November 21st, 2011, 01:28 PM
  4. Replies: 10
    Last Post: October 26th, 2011, 02:22 PM
  5. Beginner Problem
    By jokibaer in forum What's Wrong With My Code?
    Replies: 7
    Last Post: August 15th, 2011, 06:34 PM

Tags for this Thread