Java Create Array With Range Of A Function Definition In The Script