This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes can someone explain to me what is going on here? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can someone explain to me what is going on here?" Watch "can someone explain to me what is going on here?" New topic
Author

can someone explain to me what is going on here?

william chaple
Ranch Hand

Joined: Mar 08, 2013
Posts: 119
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

Joined: Jan 03, 2004
Posts: 6109
    
    6

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

Joined: Nov 09, 2011
Posts: 1012
    
    5

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: can someone explain to me what is going on here?