Android: How to add multiple edit text value to array
<p>I have three Edit Text on my activity and i will like to add each value to array if  the Edit Text not empty.</p>

<p>Here is what i want:
EditText 1, EditText 2, EditText 3<br/></p>

<pre><code>public static ArrayList&lt;String&gt; arrayValue = new ArrayList&lt;String&gt;();
public static ArrayList&lt;String&gt; arrayTitleValue = new ArrayList&lt;String&gt;();
</code></pre>

<p>if edittext 1 not empty then<br/></p>

<pre><code>arrayTitleValue.add("Text Box Value 1")
arrayValue.add(EditText 1.getText.tostring)

if edittext 2 not empty then
Add edittext 2 to variable string e.g arrayValue.add(EditText 2.getText.tostring)
arrayTitleValue.add("Text Box Value 2")

if edittext 3 not empty then
Add edittext 3 to variable string e.g arrayValue.add(EditText 3.getText.tostring) 
</code></pre>

<p>then finally: print the result this way:</p>

<pre><code>System.out.println("Title Result: "+arrayTitleValue+" Array Value: "+arrayValue);
</code></pre>

<p>so at the end of the day i want my result to look like this:<br/></p>

<pre><code>Result value for arrayValue= Result1(edit text 1 value),Result2(edit text 2 value),Result3(edit text 3 value)

Result value for arrayTitleValue= ResultTile1("Title 1"),ResultTitle2("Title 2"),ResultTitle3("Title3")
</code></pre>

<p>i just want very fast way to achieve this task any help is welcome</p>