Results 1 to 14 of 14
  1. #1
    javasucks2009 is offline Member
    Join Date
    Mar 2009
    Posts
    9
    Rep Power
    0

    Unhappy Guys help me with recursive pleaseeee!!

    can u help me to do coding for the question pleaseee!!!?



    Question:


    Write a program that prints the elements of an array of size 11 in the reverse order. Use a recursive method
    that takes as parameters the array and the size of the array to print it in reverse.

    //prints the elements in the reverse order
    Void printReverse (int a[], int n)

    thanks


    Andy

  2. #2
    Algatron is offline Member
    Join Date
    Mar 2009
    Posts
    9
    Rep Power
    0

    Default

    This sounds a lot like something you could easily Google.
    Also sounds like its a homework assignment so you should at least try it yourself before asking in a forum ?


    with an array of N elements....
    array[0], array[1], ... , array[N-1]

    at the Kth iteration,
    print array[N-k]
    call method again with K-1

    stop after u print array[0]

  3. #3
    javasucks2009 is offline Member
    Join Date
    Mar 2009
    Posts
    9
    Rep Power
    0

    Default

    thanks mate!!! it is home work buh its due in 4hrs lol. i am trying to do myself and getting help on forum as well. thanks again.

  4. #4
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    double posted in new to java sub-forum.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  5. #5
    javasucks2009 is offline Member
    Join Date
    Mar 2009
    Posts
    9
    Rep Power
    0

    Default

    By mistake!!

  6. #6
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    8

    Default

    Dude, tell us how you really feel about Java...

  7. #7
    javasucks2009 is offline Member
    Join Date
    Mar 2009
    Posts
    9
    Rep Power
    0

    Default

    Java sucks!!!! i am 1st year student and doing java 1st time. it is quite easy when we start and get harder and harder as long we gonna get into it.

    personaly!! i love to do programming buh java is quite nice as long i stay up to date with it. i think it is hardcore stuff. i would suggest ppl dont do it if u dont like programming or hate spending time computer. java is like sitting, sleeping, eating and etc etc on computer lol.

    how do u feel about java???

  8. #8
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    java is like sitting, sleeping, eating and etc etc on computer
    that's pretty much every prog lang. just be glad you don't have to prog in asm anymore.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

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

    Default

    Java is hard-core? Like angryboy suggests, many of us remember cutting our teeth on asm, struggling with pointers in c++. Java in contrast is suave and sophisticated.

  10. #10
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    8

    Default

    Dude, you crack me up! I make lots of $$$ doing Java programming. Tell everyone to stay away from it! I don't need the competition...

    BTW, how can you love programming if you don't like being on a computer??? LOL

  11. #11
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    BTW, how can you love programming if you don't like being on a computer??? LOL
    maybe he use paper and pencil.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  12. #12
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    Turing machine for the win!

  13. #13
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    8

    Default

    Maybe an IDE for the PS3...

  14. #14
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    Now that would be interesting... portable IDEs... :p
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

Similar Threads

  1. Recursive Counting
    By zlwilly in forum New To Java
    Replies: 1
    Last Post: 01-29-2009, 09:42 PM
  2. Recursive Method
    By bluegreen7hi in forum New To Java
    Replies: 5
    Last Post: 11-29-2007, 05:45 AM
  3. Recursive Anagram
    By zoe in forum Advanced Java
    Replies: 1
    Last Post: 08-07-2007, 07:15 AM
  4. Help with recursive implementation
    By toby in forum Advanced Java
    Replies: 1
    Last Post: 08-07-2007, 06:57 AM
  5. Help with recursive function in java
    By cachi in forum Advanced Java
    Replies: 2
    Last Post: 07-31-2007, 07:51 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
  •