I have a string which is having student roll number in it and its name like [33 john smith]. I need to get the value of roll number in a variable int id; and rest of string "john smith" in string name;
Can you please help me to get this information from string data = "33 john smith"; into int id=33; and string name ="john smith";?
 
    