Java : convert String to int

Trabla: Java : convert String to int

Solving:

use Integer.parseInt


Example:

....

String myStringValue  = "123";

int  myIntValue = Integer.parseInt(  myStringValue    );

....

No comments:

Post a Comment