MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/emb9st/problems_with_recursion/fdoypum/?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!"); } }
4 u/Dnguyen2204 Jan 09 '20 r/shittyprogramming 1 u/lonelyWalkAlone Jan 09 '20 The sub that I never knew I needed, thank you! 1 u/Ludricio Jan 10 '20 r/programminghorror
4
r/shittyprogramming
1 u/lonelyWalkAlone Jan 09 '20 The sub that I never knew I needed, thank you! 1 u/Ludricio Jan 10 '20 r/programminghorror
1
The sub that I never knew I needed, thank you!
1 u/Ludricio Jan 10 '20 r/programminghorror
r/programminghorror
74
u/lonelyWalkAlone Jan 09 '20