I need to help me understand the part of object programming.
I needed to pass a value that was not inside the test object to know the user's choice. But once again I am a beginner in objects.
How do I call in my main activity to receive the choice?
public class organizadist {
public organizadist()
{
}
public teste[] inicializa(teste[] objecto) {
// o que eu queria receber
if (escolha==1){
// faz alguma coisa
}
if (escolha==2){
//faz outra coisa
}
public static class teste {
public int ola;
}
}