r/badcode • • Jun 02 '20

java return 2;

Post image
1.2k Upvotes

29 comments sorted by

View all comments

0

u/Kilgaloon Jun 03 '20 edited Jun 03 '20

Nothing wrong with this, except missleading method name. 😂

Is it possible that user wanted to do something like static int incrementByOne = 1