I know about the working of a list. when i make the following code its working fine but i cant access its values and i know what are the values in it but following output is showing which is wrong.
List<StringArray> searchresponse = searchContent(data, pasta, chan, Type, arrS, arrk);
System.out.print(searchresponse);
this output =
[net.java.dev.jaxb.array.StringArray@787582d3] is not correct. How to show the items which are coming in response of that function which is called ?
System.out.print(/*Object*/ o)
is equivalent toSystem.out.print(/*Object*/ o.toString())
In your case
o
issearchresponse
This is the default toString() behaviour.
To verify, try this: