-4
My java code:
for (Construtor usuario: users){
Construtor USER = new Construtor(user.getNomeUsuario);
arrayList.add(USER);
}
** How do I get the position of the loop in this configuration above? See that the old way is easier because:
for(int i = 0; i < users.size(); i++){
Toast......"Posição" + i.......Show();
}
** It’s easier the old-fashioned way, but I want to know how you do it the other way.
Please avoid long discussions in the comments; your talk was moved to the chat - As for the post, reduce the code to a [mcve] problem, to avoid further mismatches of information and enable reopening.
– Bacco
Don’t change your question, ask it properly the first time. When you change the question after you have an answer you invalidate this answer and it is not fair to the person who answered it. That is why it is important to ask the question properly right away, and that is why questions that are not good need to be closed as soon as possible, to avoid bad answers being given because the question is in bad shape.
– Maniero