title: Initializing Object With Non-Existent Value
body: <p>Is it possible to initialize a constructor if one of the value from parameter is non existent?</p>
  <pre><code>public Plane(List&lt;String&gt; e) {
  
          this.type = e.get(0);
          this.name = e.get(1);
          this.color = e.get(2);
      }
  </code></pre>
  <p>On the third line of the below list, the value for name is missing.</p>
  <pre><code>type,name,color
  commercial,boeing,white
  commercial,airbus,white
  commercial,white
  </code></pre>
  <p>So if e.get(1) for line 4 doesn't exist, I get ArrayIndexOutOfBoundsException</p>
  <p>is there a way to create the object without lifting the exception?</p>