title: How to manually set an array in Java?
body: <p>How do you manually assign variables to an array?  I have a code fragment below.
  I don't want to manually put <code>shortStraight[0] = "211100", shortStraight[1] = "021110"</code>, and so on.   Any help?</p>
  
  <pre><code>private String [] shortStraight;
  
      public Sample () {
          shorty = new String [12];
                  shorty = {211100, 021110, 002111, 121100, 112100, 111200, 012110, 011210, 011120, 001211, 001121, 001112 } //this line doesn't work.
  </code></pre>
  
  <p>Any help?</p>