how to cast a string to int in android studio code example Example: from string to int android studio String s; int myNum = Integer.parseInt(s);