Skip to content

Commit

Permalink
code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelnyandoro committed Jul 4, 2024
1 parent 06f0666 commit 68abf47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected void onCreate(Bundle savedInstanceState) {
@Override
public void onClick(View view) {
String p = phone.getText().toString();
int a = Integer.valueOf(amount.getText().toString());
int a = Integer.parseInt(amount.getText().toString());
if (p.isEmpty()){
phone.setError("Enter phone.");
return;
Expand Down

0 comments on commit 68abf47

Please sign in to comment.