This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
for loop is not running properly
Joined: Jun 28, 2004
Jun 28, 2004 12:22:00
public static void main(
int array=new int;
br = new
Program compiles but do not access array for given loop conditions
Joined: Mar 26, 2004
Jun 28, 2004 12:34:00
I think your problem is that you use a class name that already exist in the the
standard library: Array.
I'm not sure on this, but it might be worth a try to rename your class.
hope that helps.
Joined: Oct 02, 2003
Jun 28, 2004 13:15:00
why do you think this is not working? what were you expecting to see, and what did you see?
i typed it in, compiled it, and ran it. everything seems fine to me.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: for loop is not running properly
problem in loop
Array i/o and sorting
Reading array elements from a file.
String array problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014