Menu

[r805]: / trunk / php-java-bridge / tests.php5 / iterator.php  Maximize  Restore  History

Download this file

16 lines (10 with data), 232 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<?php
require_once ("java/Java.inc");
$here=getcwd(); java_require("$here/hashSetFactory.jar");
$hash = java("HashSetFactory")->getSet();
$hash->add(1);
$hash->add(3);
foreach($hash as $key=>$val) {
echo "$key=>$val\n";
}
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.