A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
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
Reading array elements from a file.
String array problem
Array i/o and sorting
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014