Hi,
I have a program that reads lines from a file. I save the lines to the
String rivi. The problem is that one line contains 2 short Strings, one double and one integer. I need them separately, so how do separate them from that String?
For example, I have a String longString that contains the following data:
sukunimi etunimi 12345 52.415
I would like to save them in separate variables:
String shortString1 = sukunimi
String shortString2 = etunimi
int number1 = 12345
double number2 = 52.415