I have a string where i need to place the values from the list,But when i for loop the list i will get one value at a iteration.
public class Test2 {
    public static void main(String[] args) throws ParseException, JSONException {
        List<String> value=new ArrayList<String>();
        value.add("RAM");
        value.add("26");
        value.add("INDIA");
        for(int i=0;i<value.size();i++){
        String template="My name is "+value.get(i) +"  age is "+value.get(i)+" country is"+value.get(i);
        System.out.println(value.get(i));
        }
    o/p should be like this:    String ="My name is +"+RAM +"age is "+26+"Country is"+INDIA;
    }
}
 
     
     
     
    