title: Initialize final variable in constructor
body: <p>I'm trying to initialize a <code>private final</code> variable in the constructor of my class. I found this thread explaining how to do it (<a href="https://stackoverflow.com/questions/5093744/initialize-a-static-final-field-in-the-constructor">Initialize a static final field in the constructor</a>), but eclipse doesn't seem to like my code. I was wondering if someone could shed some light on what I might be doing wrong.</p>
  
  <pre><code>public class A {
    final private String myString;
  
    public A() {
      myString = "content";
    }
  }
  </code></pre>
  
  <p>With this code I'm getting:</p>
  
  <blockquote>
    <p>The blank final field myString may not have been initialized</p>
  </blockquote>
  
  <p>This seems pretty dang similar to the examples in the thread I linked to.</p>
  
  <p>Thank you for the help!</p>