I'm trying to parse an int from a dummy String for test reasons. The string will be:
String numOfStudents = "Number of Students: 5";
I want to parse this String, ensuring it contains the line 'Number of Students' as well as finding out the int value.
How can I achieve this? I need the int value to compare it to another int value.
Thanks