What's is the best practice for marking variables that you need to delete later in Java?
<p>I scratched my head for two weeks trying to compute something based a variable. </p>

<p>It turns out I set the variable earlier to solve temporarily another problem and never went back to correct it.</p>

<p>Normally, I try to mark up code with //ToDo 's to remind me to remove the temporary variable.</p>

<p>In this case, I didn't mark it since I was skipping around trying to fix more than a few things. (I couldn't figure out what was going on so I was trying all sorts of stuff!)</p>

<p>How do you mark temporary variables that you wish to remove later?</p>

<ol>
<li>Do you instantiate them as private at the top of the class?</li>
<li>Mark them inline with something like //Delete Me Later</li>
</ol>

<p>What's is the best practice for marking variables that you need to delete later?</p>

<p>(short of having a really organized brain of course...)</p>
