I have the line read from a file as follows:
ABC: Def, XYZ-ID: Xbase::Something, here, 90, EFG: something: again
The key words are ABC, XYZ-ID and EFG and the values of these key words follow.
How do I process the line such that I can further use the code below to process the key and value accordingly:
String[] keyValArray = str.split(":");
String key = keyValArray[0];
String val = keyValArray[1];
P.S: The key words are all in capitals.
Thanks in advance.