I want to take from rotatedZeros the numbers in every array, one by one, and transform it to indexes, as to retrieve the String/s from courses an put those array in finalExcelFormula . Or can anybody explain how this is done with Map.
rotatedZeros contains all posible unique numbers make un from all digits.
Ex: rotatedZeros.get(3) = [1,3,4]; I want to return from the courses ArrayList the string at indexes 1 ,3 and 4 and put this array inside finalExcelFormula array. Obs. The numbers are always ascending !
List<Integer[]> rotatedZeros;
List<String[]> finalExcelFormula = new ArrayList<>(1023);
static List<String> courses = new ArrayList<>();
courses.add("\"Vue\"");
courses.add("\"Mathematics\"");
courses.add("\"Geography\"");
courses.add("\"Physics\"");
courses.add("\"Sport\"");
courses.add("\"Literature\"");
courses.add("\"Design\"");
courses.add("\"C++\"");
courses.add("\"Java\"");
courses.add("\"C#\"");
private void finalExcelFormula() {
for(int i = 0; i < rotatedZeros.size(); i++) {
for(int e = 0; e < rotatedZeros.get(i).length; e++){
Arrays.stream(finalExcelFormula.get(i)).toArray(courses.get(rotatedZeros.get(i)[e]));
}
}
}