×

Loading...

help me,jabber!Thank you very much!

forever (kp)
dog()
{
for (int i=1;i<10;)
System.out.println(i);
}
this function will never end ,it will print endless1 because it do nothing after the judgement i<10
but why the function below runs ok?
public static void print(Collection c)
{
for (Iterator x=c.iterator();x.hasNext();)
System.out.print(x.next()+" ");
System.out.println();
}
(#33373@0)
2001-3-15 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: help me,jabber!Thank you very much!

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT杂谈