Posts by Bruno Pastre • 156 points
4 posts
-
0
votes1
answer46
viewsA: Display given arraylist, with click on given button
Simply change your Listview Adapter. For example: botao1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mudaLista(listaDePerguntas); });…
-
2
votes1
answer396
viewsA: Vector and matrix ordering
Research a little about Sorting algorithms. There is no 'more efficient', how good it is depends a lot on the vector you will sort. What you used is Bubble Sort, usually the first ordering algorithm…
-
1
votes2
answers5595
viewsA: How do I validate input in c?
The best way to go is to analyze the input from a String (or character array), so we can decide what is or is not integer. It is important to say that C, to define the characters, uses the ASCII…
-
1
votes1
answer118
viewsA: Increment in Java vectors
Write down v[x] *= v[x-1] is the same thing as writing v[x] = v[x] * v[x-1]. The value of v[x-1] is already there, it is not calculated, so you cannot 'reach it'. Imagine the vector as a queue, you…
javaanswered Bruno Pastre 156