How can I read numbers from a string until I find a specific char, in my case – a dot.
For example I have a
String date = "18.8.2011"
int mDay = 0;
int mMonth = 0;
int mYear = 0;
And I want to make mDay = 18, mMonth = 8 and mYear = 2011 – I want to be able to copy the digits until I find a dot.
Use split method of String class.