File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Expression should be an Array but resolves to List <String>...trying to iterate through List Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Expression should be an Array but resolves to List <String>...trying to iterate through List" Watch "Expression should be an Array but resolves to List <String>...trying to iterate through List" New topic
Author

Expression should be an Array but resolves to List <String>...trying to iterate through List

Dick Hammer
Greenhorn

Joined: Jan 28, 2012
Posts: 18
This was working fine when "labels" and "ListofCars_1" were arrays. But I made them a list and now it won't work.


}

Expression should be an Array but resolves to List <String>. I tried typing something like



But that did not work either. Any help would be appreciated.
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Dick Hammer wrote:I tried typing something like

But that did not work either. Any help would be appreciated.

Did you also tried changing ListofCars_1[i] to ListofCars_1.get(i)?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Expression should be an Array but resolves to List <String>...trying to iterate through List
 
Similar Threads
Accessing a jLabel with % reference?
Labeled statements
Regular expressions
Checkbox using Swing
Confuse