title: Should I cache System.getProperty("line.separator")?
body: <p>Consider such method:</p>
  
  <pre><code>@Override
  public String toString()
  {
      final StringBuilder sb = new StringBuilder();
      for (final Room room : map)
      {
          sb.append(room.toString());
          sb.append(System.getProperty("line.separator")); // THIS IS IMPORTANT
      }
      return sb.toString();
  }
  </code></pre>
  
  <p><code>System.getProperty("line.separator")</code> can be called many times. </p>
  
  <p>Should I cache this value with <code>public final static String lineSeperator = System.getProperty("line.separator")</code>
  and later use only <code>lineSeperator</code>?</p>
  
  <p>Or <code>System.getProperty("line.separator")</code> is as fast as using a static field?</p>