Java tutorial
//package com.java2s; //License from project: Apache License import java.util.ArrayList; public class Main { public static String[] generateArrayWithStringValuesInRange(int min, int max) { ArrayList<String> arrayList = new ArrayList<>(); for (int i = min; i < max; i++) { arrayList.add(Integer.toString(i)); } String[] stringArray = new String[arrayList.size()]; for (int i = 0; i < arrayList.size(); i++) { stringArray[i] = arrayList.get(i); } return stringArray; } }