Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can we return a value in recursive function?

800294Jan 11 2010 — edited Jan 11 2010
Dear ,
I am now developing a recursive function like factorial .As I develop I can print the value in console.But I am unable to return the value to main function.How can I fix this issue?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2010
Added on Jan 11 2010
3 comments
245 views