[Solved] How to retrieve specific values from String


As suggested in the comments, you may split on & then on = , like this example :

String testString = "param1=value1&param2=value2&param3=value3&param4=value4&param5=value5";

String[] paramValues = testString.split("\\&");

for (String paramValue : paramValues) {

    System.out.println(paramValue.split("\\=")[1]);
}

solved How to retrieve specific values from String