title: How to initialize array of custom class objects?
body: <p>It sounds easy but i've been trying to do it for quite sometime, <code>I want to initialize my custom class object array using curly braces</code> </p>
  
  <p>Here is the failed example:</p>
  
  <p><strong>class:</strong></p>
  
  <pre><code>class Tranforminfo{
          int left;
          int top;
          int right;
          int bottom;
          float rorate;
  
          public Tranforminfo(int left, int top, int right, int bottom, float rorate) {
              this.left = left;
              this.top = top;
              this.right = right;
              this.bottom = bottom;
              this.rorate = rorate;
          }
      }
  </code></pre>
  
  <p><strong>Usage: (not correct)</strong></p>
  
  <pre><code>// attempt 1 
  Tranforminfo somedamn = new Tranforminfo[]{(1,2,3,4,5),(6,4,3,5,6)};
  
  // attempt 2
  Tranforminfo somedamn = new Tranforminfo[]{{1,2,3,4,5},{6,4,3,5,6}};
  
  // attempt 3
  Tranforminfo somedamn = new Tranforminfo[]((1,2,3,4,5),(6,4,3,5,6));
  </code></pre>
  
  <p>No luck so far help appreciated , i am coding in android(JAVA)</p>