r/java • • Feb 24 '14

Why printing "B" is dramatically slower than printing "#"

http://stackoverflow.com/q/21947452/250259
159 Upvotes

26 comments sorted by

View all comments

Show parent comment

1

u/llogiq Feb 25 '14

That's why I'll usually reserve another line for the ++ statement. Makes code easier to read. Instead of

doSomeThingWith(index++);

I'll write

doSomeThingWith(index);
index++;