title: Initializing Java object instances containing an array of objects
body: <p>The following code is correct:</p>
  
  <pre><code>public Sample mOboeSamples[] = { new Sample(1,1), new Sample(1,2) };
  public Sample mGuitarSamples[] = { new Sample(1,1), new Sample(1,2) };
  public SampleSet mSampleSet[] = { 
          new SampleSet( "oboe",  mOboeSamples ),
          new SampleSet( "guitar", mGuitarSamples)
          };
  </code></pre>
  
  <p>but I'd like to write something like:</p>
  
  <pre><code>public SampleSet mSampleSet[] = { 
          new SampleSet( "oboe",  { new Sample(1,1), new Sample(1,2) } ),
          new SampleSet( "guitar", { new Sample(1,1), new Sample(1,2) } )
          };
  </code></pre>
  
  <p>This does not compile.</p>
  
  <p>Is there some bit of syntax I'm missing, or is this a language 'feature'?</p>