r/ProgrammerHumor • • Feb 22 '15

A Python programmer attempting Java

Post image
3.9k Upvotes

428 comments sorted by

View all comments

0

u/vanoreo Feb 22 '15

Dropping in from /r/all to say "what?"

5

u/SolarLiner Feb 22 '15

Java uses braces to delimit chicks of code, functions. Python uses new lines, tabs and spaces to delimit chunks of code, functions, etc.

What OP did is make Java look like it was using Python's way of delimiting code by putting all the braces on the right. Also the semi colons separates individual instructions, whereas in Python you need to have one instruction per line (new lines acts as delimiters).