how to initialize static ArrayList<myclass> in one line
<p>i have myclass as</p>

<pre><code>myclass(String, String, int);
</code></pre>

<p>i know about how to add to add to ArrayList in this way:</p>

<pre><code>myclass.name = "Name";
myclass.adress = "adress";
myclass.age = age;
</code></pre>

<p>then add to arrayList like:</p>

<pre><code>list.add(myclass);
</code></pre>

<p>but now i have many object myclass in static form, i want to add</p>

<pre><code>ArrayList&lt;myclass&gt; list = new ArrayList&lt;myclass&gt;({"Name","Address", age};.....);
</code></pre>

<p>can i do like this. thank anyway</p>
