Java code translation of Python array-splitting code
<p>Can someone please give the Java equivalent of the below python (which slices a given array into given parts) which was originally written by ChristopheD here:</p>

<pre><code>def split_list(alist, wanted_parts=1):
   length = len(alist)
   return [ alist[i*length // wanted_parts: (i+1)*length // wanted_parts] 
            for i in range(wanted_parts) ]
</code></pre>

<p>I don't know any python but can really use the above code in my Java app. Thanks</p>
