[Solved] Extract specific string from String [closed]


Use this

String[] params = data.split(" ");
String firstString = params[0];

split() function will split your whole string using space as delimiter, resulting in array of strings. First element of the array is the string you are looking for.

2

solved Extract specific string from String [closed]