I've got simple setter and getter of string array. I want to use setter to put some retrieved json info + same text to array. When I use this code:
met.setPlacepic(new String[]{"http://dfsdfsdfsf/" + json.getString("source")});
it looks like setter put only one string to array, despite there is many more data.
Declaration is simple:
public String[] placepic
and the setter is also simple:
public void setPlacepic(String[] placepic) {
this.placepic = placepic;
}
Does anybody know the reason of this?
setPlacepic(). Do you want to add to it instead?