Java Resize Array Example In Python If Else