How can l capture the output from a split and use it for example as an action or comparing with data in the database
String myString = (msg.getText());
String[] a = myString.split("\\*");
for (String b : a)
System.out.println(b);
the output is:
pay
merchant
amount
want to use pay as an action and amount to increase the amount of the merchant in the database