Login  Register

Arrays

Posted by Tiggy123 on Apr 20, 2010; 12:06pm
URL: http://imagej.273.s1.nabble.com/Arrays-tp3688544.html

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