Java Split String Into Int Array Function