Java Split String Into Int Array Example With Loop