Answered You can hire a professional tutor to get the answer.

QUESTION

buttonconverttoint.setOnClickListener( new View.OnClickListener(){ @Override public void onClick(View view) {...

View.OnClickListener(){@Override onClick(View view) {tv_result.setText(convertToInt(Integer.parseInt(edt1.getText().toString())));}});I don't know why but iam getting a error on part: Integer.parseInt(edt1.getText().toString())))

This is the code:

{ (s.isEmpty()) ; (s.startsWith()) + convertToInt(s.substring()); (s.startsWith()) + convertToInt(s.substring()); (s.startsWith()) + convertToInt(s.substring()); (s.startsWith()) + convertToInt(s.substring()); (s.startsWith()) + convertToInt(s.substring());+ convertToInt(s.substring());+ convertToInt(s.substring());+ convertToInt(s.substring());+ convertToInt(s.substring());+ convertToInt(s.substring());+ convertToInt(s.substring());+ convertToInt(s.substring());+ convertToInt(s.substring()); IllegalArgumentException();} { (s == || s.isEmpty() || !s.matches()) -; convertToInt(s);}
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question