
October 16th, 2000, 10:40 AM
|
|
Junior Member
|
|
Join Date: Oct 2000
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Hello,
This maybe of some use:
try {
Image images[]=new Image[countlen];
String imageSrc;
String DIR="/public_html/SitePit/Graphics/counter";
for (int i = 0; i < num_hits.length; i++) {
imageSrc = req.getRealPath(DIR + "/" + num_hits.charAt(i) + "SBWM.GIF");
images[i] = Toolkit.getDefaultToolkit().getImage(imageSrc);
}
To get the size of an array you do:
array.length
not
array.length()
Hope that helps!
|