On Thu, 29 Apr 2004 17:50:02 +0200 (CEST), Nomen Nescio wrote:
Sub: If it looks like a bug acts like a bug ...
...it is probably a noob error.
[F'ups set to c.l.j.h, the only one
of the three groups to which you
cross-posted that is actually valid. ]
I say its a bug. What do you think?
Wot? You mean the way your copy paste
seems to lose the {}, ; and []?
Definitely, lose that editor immediately!
I have no idea what you think the bug is,
since you did not say, (and my crystal
ball is out for cleaning) but it may have
something to do with your confusion between
the upper and lower case 'I/i', which you
seem to use interchangeably.
Try this variant.
<code>
public class TestBug
{
public static void main(String[] args) {
int n;
for (int i = 0; i < 5; i++)
System.out.println("n = "+ i);
for (int i = 0; i < 5; i++)
System.out.println("n = "+ i);
}
}
</code>
Next time you discover a 'bug', I recommend
you post _only_ to c.l.j.help with a title
to the effect 'cannot understand why this code..'
And please be specific..
- I expect this output beacuse of a, b and c
- _Instead_ I get _this_ output..
HTH
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology