I have my application.properties:
test.md5.params=something1,something4
In my java class I am getting this particular value : and need to create same strings as present in the property file, such as
 public String calculate(RequestClass request)
       {
       List<String> params= //I am getting the values from application.prop  
        **(above part id done)**
       
My Question is below  ::
now in my params list I have [something1,something4]
so I need to concatenate both the String values like below:
       String finalString=request.getSomething1()+request.getSomething4();
       return finalString;
       }
My Question is how to do this dynamically and in my properties file I might receive "n" of something values. Note : I need to make the code such that my class remains constant, if in future I am adding 10 more values in properties files, my final string should be returning like
   String finalString=request.getSomething1()+request.getSomething4()+....all the values.;