1
I have a class called Hospede
, where I have the method getData_entrada()
, that returns a variable LocalDate
(new java8 API). However, when I try to capture this method, it always returns to me 'null
'.
Detail: when I try to capture the other getters works normally.
//conteudo getData_entrada:
public LocalDate getData_entrada() {
return data_entrada;
}
Hospede hospede = (Hospede) mStrings.get(position);
textView_nome.setText(hospede.getNome());
LocalDate data_Entrada = hospede.getData_entrada();
Is there any way you can put the contents of
getData_entrada()
in the question?– viana
public date getData_input() { Return data_input; }
– Hipólito
There are several ways to solve this problem, explain us better the context of your application so that we can help you with the best option.
– Henrique Luiz