You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Looping on String split

Received Response
edited May 4, 2022 3:10AM in Integration 5 comments


Hi, I am trying to achieve the following java logic in Oracle Integration Cloud. Basically I am getting comma separated string as input. I want to split the string(Test1,Test2,Test3) based on the comma, iterate it, and in the loop send each split string (ex:test1) to the external REST service as input.

public class MyClass {

  public static void main(String args[]) {

          String vInputIntgs = "Test1,Test2,Test3";

String comma = ","; // To search ',' from the first occurrence of the specified string

int start = 0, end;

end = vInputIntgs.indexOf(comma, start);


while (end != -1) {

String split = vInputIntgs.substring(start, end);

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!