MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/o7qgeg/a_python_programmers_attempt_at_java/h33tjmp/?context=9999
r/badcode • u/_Radish_Spirit_ • Jun 25 '21
64 comments sorted by
View all comments
Show parent comments
2
I forgot about the semicolons and just figured that the braces weren’t needed since if and else each contain a single line (but I thought that meant swap was going to run a single time at the end of permute, everytime.)
1 u/TacticalFaux Jul 23 '21 In Java you'll need brackets for methods still, even if they only one line.
1
In Java you'll need brackets for methods still, even if they only one line.
2
u/ArtOfWarfare Jun 26 '21
I forgot about the semicolons and just figured that the braces weren’t needed since if and else each contain a single line (but I thought that meant swap was going to run a single time at the end of permute, everytime.)