I have a List:
private List<Geracao> lista;
This list will be populated with data coming from a database:
lista = dao.findAll();
The findAll() method:
@SuppressWarnings("unchecked")
@Override
public List<Gerac...
I have a method that receives an unknown amount of parameters as an Array, like this:
public void enviarCampos(String funcao, String... campos) {
// Ação do método
}
To call this method I do:
enviarCampos("CADASTRAR", "nome", "dataNasci...
I'm doing a server in java that wanted to perform certain tasks in parallel. I have a list of a certain type I want 20 threads to deal with deterimented list elements.
for( Item item : result ) {
Callable< List< IResult > > cal...
Greetings, friends.
I have a problem with Java.
I'mtryingtoaddanelementoftype"Occurrence" in a JList. This element has 4 elements inside it, which I need to keep. So far so good.
However, the problem appears when I add that element to...
I would like to know how to create a custom Alert Dialog where you have an ImageView containing a GIF.
In my Main.
imgAndroid = (Button) findViewByid (R.id.imagandroid);
imgAndroid.setBackgroundResource (R.drawable.imagee);
anime = (Anima...
I have the following problem: in an insert that I am trying to perform, I do not know if it is an error in the database or something in the programming in java, however every time I try to perform an insert of the client table I get the error: p...
Hello, I'm developing an app where patients have left it in the background or even open, and when the patient's time comes, the office sends a notification saying that it's his time. Do you have any specific library for this?
I'm very new to and...
I have TextView and would like instead of filling with a Arraylist , with all items in its setText , that it be created several times on the screen, with the respective items of this array, in each setText of each T...
My problem is that I placed a button so that when it was clicked, I would add the value 1 to JTextField .
But when I click again, it replaces the value, and what I wanted was for it to add another type 1 , I click once on t...