I want to do String validation : <p>We need to consider the below string as use cases , First I want to split 
     by "," then by "@"</p>

<p>After Splitting by @ if all the domain are same(either all gmail or all yahoo) its valid 
   else invalid.</p>

<p>Help me with split part.</p>

<pre><code>String input1 = example@gmail.com , example1@gmail.com; 
String input2 = example@yahoo.com , example1@gmail.com;


    String input 1 == valid.
    String input 2 == Invalid.
</code></pre>
