vendredi 3 octobre 2014

Delete button in calculator


Vote count:

0




I'm creating a calculator i made a delete button but when i run app it crashes and stopped this is my java code



private static String removeLastChar(String str) {
return str.substring(0,str.length()-1);


and this



bdelete.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
editText.setText(removeLastChar(editText.getText().toString()));
}
});


asked 1 min ago







Delete button in calculator

Aucun commentaire:

Enregistrer un commentaire