Java Specify Array Size Python Code