Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 709 Bytes

File metadata and controls

15 lines (11 loc) · 709 Bytes

Declaring variables before or in loop

If the variable life is only inside the loop put the variable inside the loop!

.. seealso::

        | https://stackoverflow.com/questions/7959573/declaring-variables-inside-loops-good-practice-or-bad-practice-2-parter
        | http://www.javapractices.com/topic/TopicAction.do?Id=126
        | https://stackoverflow.com/questions/407255/difference-between-declaring-variables-before-or-in-loop
        | https://stackoverflow.com/questions/8803674/declaring-variables-inside-or-outside-of-a-loop
        | http://www.javalobby.org/forums/thread.jspa?threadID=16730