Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can someone explain to me what is going on here?

 
william chaple
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys I missed a lecture and now I am not sure what he is trying to do. I am going to paste the code, was hoping of someone can help me break it down and what exactly is this or explain to me






and the main class





ok can someone explain what recursion exactly is?

and what is he exactly trying to do with these methods?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
william chaple wrote:ok can someone explain what recursion exactly is?


Hi! Please SearchFirst(⇐click) (such as googling for recursion) and then ask a more specific question if, after studying it for a while, there's something you still don't grasp.

and what is he exactly trying to do with these methods?


Demonstrate recursion, probably.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regardless of what recursion is, surely you can run and debug (if necessary) to see what this code is doing. Once you have done that and researched recursion using our friend Google, come back and ask about what you don't understand.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic