title: check if variable is initialized in Java
body: <p>Is there a way in Java to check the variable is initialized of not inside a class. I found for <a href="https://stackoverflow.com/questions/10181619/how-do-i-test-if-a-variable-in-javascript-is-initialized">javascript</a> but not for Java. Hear is an example of what I am looking for.</p>
  
  <pre><code>private float[] Average;
  private void Check(){
  if(/*variable is not initialized*/){ Average = new float[4];}
  }
  </code></pre>