NO lo ltrasforma solo se non è vuoto:
primo perchè
aumenta.getText().equals(temp2)=false
poi test avendo lasciati i campi vuoti è false
quindi non dovrebbe entrare nell'else....
codice:if(aumenta.getText().equals(temp2) && test){ test=false; } else{ String aument=aumenta.getText(); // prendo la stringa di aumenta au=Integer.parseInt(aument); // la trasformo in un numero test=true;

Rispondi quotando