Arrays

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Arrays

Tiggy123
I have a class which puts selected filepaths of imgages into an array using. . .

String[] displayImages = new String[images.size()];
displayImages = images.toArray(displayImages);

I now have another class in which I want to print this information in a list. Eg
Image 1 filepath
Image 2 filepath
etc

I have an object a in the class which has other attributes which are just Strings eg ID number which I am able to access using
IJ.log(a.getID());
(I have used a file input stream to do this)

However, when I do
IJ.log(a.getdisplayImages());
I am unable to because I can't do (java.lang.String[])

I'm not sure how to retrieve the information from the array?
Any help would be appreciated.
Thanks