[Solved] Java how to get certain word from array [closed]


Make use of split method in String.

Assuming you have standard format.

String [] commasplit = Array[0].split(",");

And then

String [] allocated = commasplit[1].split(" : ");
String allocatedValue = allocated[1] //2B (13)

Given the codes, write a generic method with method params, so that you won’t end up in writing it multiple times.

3

solved Java how to get certain word from array [closed]