Sorry if this is a bit of a newbie question, but what is the procedure for accessing
methods of Inner classes in Inline::Java? I am fine if I am actually instantiating
the Inner class from scratch as shown on the website, but I can't seem to access ones
that have already been instantiated. The below example illustrates
#! /usr/local/bin/perl
use strict;
use warnings;
use Inline (
Java => 'STUDY',
STUDY => ['java.util.HashMap'],
AUTOSTUDY => 1,
) ;
my $hm = new java::util::HashMap() ;
$hm->put("key", "value") ;
my $valArr = $hm->entrySet->toArray();
for (my $i = 0; $i < $valArr->length(); $i++)
{
print $valArr->[$i]->getKey() . "\n";
}
Any help would be much appreciated.
Thanks and Regards,
Sean
This e-mail message is intended only for the named recipient(s) above. It may contain
confidential information. If you are not the intended recipient you are hereby
notified that any dissemination, distribution or copying of this e-mail and any
attachment(s) is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender by replying to this e-mail and delete the message
and any attachment(s) from your system. Thank you.