Results 1 to 7 of 7
  1. #1
    hacikho is offline Member
    Join Date
    Sep 2009
    Posts
    35
    Rep Power
    0

    Default exchange the position of array elements

    thanks for helping, i got it.
    Last edited by hacikho; 09-21-2009 at 04:56 AM. Reason: understand the solution

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Thank you for posting your entire homework assignment for our reading pleasure. Now, do you have a question?

  3. #3
    hacikho is offline Member
    Join Date
    Sep 2009
    Posts
    35
    Rep Power
    0

    Default

    point is how to start? Which sort am I going to use for this one, buble, select or insert ? and second one to decide odd or even what is the function for that?

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Bubble, select or insert
    Doesn't make sense. Your instructions above gives exactly how you are supposed to swap in the hint.

  5. #5
    hacikho is offline Member
    Join Date
    Sep 2009
    Posts
    35
    Rep Power
    0

    Default

    thank you for trying to help, but you dind't help me, because for my situation it is really hard to understand this problem at first if you just start to learning java. On your position you are right it is easy for you and doesn't make sense. our point of view is different for this question because of our background. I hope this make sense.
    Thanks again for the reply.

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    because for my situation it is really hard to understand this problem at first if you just start to learning java.
    Yes, you have a valid point, but this will all get easier for you with practice. Please have a look at this helpful link here: Starting Writing a Program
    Then why not come on back with your best attempt at a solution, and someone will likely be able to help you.

    Much luck.

  7. #7
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Quote Originally Posted by hacikho View Post
    point is how to start?
    Start by breaking down the requirements into smaller, testable parts. A swap method, an isEven method e.t.c




    Quote Originally Posted by hacikho View Post
    ..and second one to decide odd or even what is the function for that?
    You have to write that yourself.

Similar Threads

  1. Swapping elements of an array help please
    By ikillu in forum New To Java
    Replies: 11
    Last Post: 01-15-2012, 08:49 PM
  2. Get value of a String into elements of an Array.
    By mainy in forum New To Java
    Replies: 1
    Last Post: 08-01-2009, 09:17 PM
  3. Replies: 8
    Last Post: 08-27-2008, 10:45 PM
  4. reference to elements in array
    By Igor in forum New To Java
    Replies: 1
    Last Post: 12-14-2007, 11:56 AM
  5. Help with array of elements
    By zoe in forum New To Java
    Replies: 1
    Last Post: 07-24-2007, 05:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •