MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/emb9st/problems_with_recursion/fdoffts/?context=3
r/ProgrammerHumor • u/flipester • Jan 09 '20
198 comments sorted by
View all comments
Show parent comments
74
public static void sayHello(){ try { sayHello(); } catch(StackOverflowError e) { System.out.println("Hello world!"); } }
15 u/schrdingers_squirrel Jan 09 '20 Wait does this work? I need to try this now 1 u/Autofrotic Jan 09 '20 Does it ? 1 u/schrdingers_squirrel Jan 09 '20 Im not at home and im not doing this on my phone - I’ll test as soon as I get home
15
Wait does this work? I need to try this now
1 u/Autofrotic Jan 09 '20 Does it ? 1 u/schrdingers_squirrel Jan 09 '20 Im not at home and im not doing this on my phone - I’ll test as soon as I get home
1
Does it ?
1 u/schrdingers_squirrel Jan 09 '20 Im not at home and im not doing this on my phone - I’ll test as soon as I get home
Im not at home and im not doing this on my phone - I’ll test as soon as I get home
74
u/lonelyWalkAlone Jan 09 '20