I do not know how to face the following:
I have the following code part:
for(int i = 0; i < 2; i++){
ArrayList<String> dade = new ArrayList<String>();
switch (i) {
case 0:
dade.add(new String("1-"));
dade.add(new String("a)"));
break;
case 1:
dade.add(new String("2-"));
dade.add(new String("b)"));
break;
}
dades.add(dade);
}
The idea is to fill the array strings with 2 data. I mean the screen now shows me the following
1- a)
2- b)
The problem is that I do not want it to be using Switch / Case since the data has to be filled in manually. And I do not want there to be a maximum ..
How can I do it? I know it's a long question but I do not know how to put it.
The user will enter two data and it will be placed in a recyclerView.
That is, the result of the screen is the following, which is what I need. The problem is that these data are entered by the user and I have a swtich case. I hope to explain better now.
thanks!