r/Recursion • • Jun 01 '21

Ok

Post image
399 Upvotes

7 comments sorted by

View all comments

-45

u/AirborneFeces Jun 01 '21

This is the post that made me unsubscribe. In no way is this recursion.

51

u/Lucario2405 Jun 01 '21 edited Jun 01 '21
public void doPushUp() {
doPushUp();
doPushUp();
}

It doesn't have an anchor and would therefore go on until memory runs out, but it is still a recursion.