Which method signature is good and why?
<p>Given an IP Address Range ( a.b.c.d - a.b.c.e)  i would like a method to return the ip address's in an array list between the range.</p>

<p>Option 1 :</p>

<pre><code>public static int getIPAddressesFromRange(String rangeStr, List list ) ;
</code></pre>

<p>return value  is <code>count</code>  and the input list would be populated with list of IP's the range has</p>

<p>Option 2:</p>

<pre><code>public static List getIPAddressesFromRange(String rangeStr)
</code></pre>

<p>return value is the list of ip addresses' </p>

<p>My Option is 2, but that is intuition, not able to support my argument though.</p>

<p>Edit:  Is there any design principle the option 1 is violation ?</p>
