recursive method to comput psF(n)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: recursive method to comput psF(n)

Threaded View

  1. #1
    Join Date
    Oct 2005
    Location
    Chicago
    Posts
    24

    recursive method to comput psF(n)

    can someone explain to me how recursive methods work
    we went over it in class but i was not listening and now i'am to scared to tell the teacher. can't focus for more than 50 mins at a time
    how can you use a method within it self

    static int psF(int n) {
    if(n<2)
    return n;
    else
    return 2*psF(n-1)+psF(n-2);
    }

    how can he use a method call with in a method
    Last edited by Mcody2; 11-30-2006 at 04:30 PM.

Similar Threads

  1. Permutation recursive help
    By i.mogal in forum Java
    Replies: 2
    Last Post: 09-03-2008, 11:14 AM
  2. Replies: 2
    Last Post: 08-05-2006, 11:40 PM
  3. Comparing .NET delegates
    By Quimbly in forum .NET
    Replies: 1
    Last Post: 04-21-2006, 12:51 PM
  4. Replies: 1
    Last Post: 04-13-2006, 05:57 AM
  5. Replies: 3
    Last Post: 04-13-2001, 10:13 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center