title: Java equivalent to #region in C#
body: <p>I want to use regions for code folding in <strong>Eclipse</strong>; how can that be done in Java?</p>
  
  <p>An example usage in <a href="https://msdn.microsoft.com/en-us/library/9a1ybwek.aspx" rel="noreferrer">C#</a>:</p>
  
  <pre><code>#region name
  //code
  #endregion
  </code></pre>