aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
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)?
 
Don't get me started about those stupid light bulbs.
 
subject: Expression should be an Array but resolves to List <String>...trying to iterate through List