@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String str1 = factorOne.getText().toString();
String str2 = factorTwo.getText().toString();
int int1 = Integer.parseInt(str1);
int int2 = Integer.parseInt(str2);
int plus1 = int1 + int2;
//result.setText(plus1);
}
}
/* class minusListener implements OnClickListener{
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String str1 = factorOne.getText().toString();
String str2 = factorTwo.getText().toString();
int int1 = Integer.parseInt(str1);
int int2 = Integer.parseInt(str2);
int minus1 = int1 - int2;
result.setText(minus1);
}
}
class multiplyListener implements OnClickListener{
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String str1 = factorOne.getText().toString();
String str2 = factorTwo.getText().toString();
int int1 = Integer.parseInt(str1);
int int2 = Integer.parseInt(str2);
int multips1 = int1 * int2;
result.setText(multips1);
}
}
class divideListener implements OnClickListener{
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String str1 = factorOne.getText().toString();
String str2 = factorTwo.getText().toString();
int int1 = Integer.parseInt(str1);
int int2 = Integer.parseInt(str2);
int divide1 = int1 / int2;
result.setText(divide1);
}
}
*/
}