*
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 Murach's Java Servlets and JSP this week in the Servlets 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)?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Expression should be an Array but resolves to List <String>...trying to iterate through List
 
Similar Threads
Checkbox using Swing
Labeled statements
Accessing a jLabel with % reference?
Confuse
Regular expressions