I need to assign variables in a string.
String s = "102, 145, 163, 124";
I want to assign a separate variable like below;
num1 = 102;
num2 = 145;
num3 = 163;
num4 = 124;
I need to do it programatically since the values will change and increase so whatever is in string s is assigned a variable. Thanks