Код: Выделить всё
String result = "";
try{
int value = Integer.parseInt(a)+Integer.parseInt(b);
result = ""+value;
}catch(NumberFormatException ex){
//either a or b is not a number
result = "Invalid input";
}
MyStringSum.show(null,a+b);
класса-оболочки, могу ли я это сделать?
Подробнее здесь: https://stackoverflow.com/questions/294 ... s-than-how
Мобильная версия