title: How do you organize class source code in Java?
body: <p>By now my average class contains about 500 lines of code and about 50 methods.
  IDE is Eclipse, where I turned “Save Actions” so that methods are sorted in alphabetical order, first public methods, and then private methods.
  To find any specific method in the code I use “Quick Outline”.  If needed, “Open Call Hierarchy” shows the sequence of methods as they called one by one. </p>
  
  <p>This approach gives following advantages:</p>
  
  <ul>
  <li>I can start typing new method without thinking where to place it in the code, because after save it will be placed by Eclipse to appropriate place automatically.</li>
  <li>I always find public methods in the upper part of the code (don’t have to search the whole class for them)</li>
  </ul>
  
  <p>However there are some disadvantages:</p>
  
  <p>When refactoring large method into smaller ones I’m not very satisfied that new private methods are placed in different parts of code and therefore it’s little bit hard to follow the code concept. To avoid that, I name them in some weird way to keep them near each one, for example:  showPageFirst(), showPageSecond() instead of showFirstPage(), showSecondPage().</p>
  
  <p>May be there are some better approaches?</p>