I have a question regarding the storage of value from EditText
to attributes of type int
of a class. For attributes of type String
I do this:
objEquipamento.setMarcaModelo(edtMarcaModelo.getText().toString());
But when my attribute is of type int
? and I want to get a number?
do I have to convert the value or does some method exist for int
?