From:  "sasperilla" <charlie.hubbard@gmail.com>
Date:  05 Dec 2006 00:33:08 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.jseng
Subject:  

Java Collections and Javascript

NNTP-Posting-Host:  209.134.170.23

Hi,

Is there away to integrate java collections in with javascript in
Rhino.  For example doing things like:

for( var f in files ) {
  var name = f.getName();
}

Where files is a Collection or List.  Is there a way to expose
collections as if they were native javascript arrays?

Thanks
Charlie