Java Create Array With Range Of Motion