I am facing difficulties in mapping the values of two arrays to each other. I am having a string array list which is storing the users selected values:
private List<String> selectedCertificates = new ArrayList<String>();
The above array will store as an example ["SS", "CC", "SC"] and at the same time the user can select a language for certain types but not all of them. For example the type "SS" and the type "CC" should be by default "English" where "SC" can be either English or French or any other language.
String[] DocType = new String[4];
String[] DocLanguage = new String[4];
DocType[0] = "CE";
DocLanguage[0] = "EN";
DocType[1] = "SC";
DoctLanguage[1] = "EN";
DocType[2] = "SS";
DocLanguage[2] = ssLanguage;
DocType[3] = "RR";
DocLanguage[3] = "FR";
So now my issue is that I want to have a string array for the selected languages only that it will include ["EN","EN",valueofssLanguage] for the same sequence of the selected certificates ["SS", "CC", "SC"], so how can I achieve this?
Thanks
Mapshould fit your needs