有时,强制循环的早期迭代很有用。也就是说,您可能想要继续运行循环,但不要处理其特定迭代中其余代码的其余部分。实际上,这是一个刚刚通过循环体的转到循环的结尾。continue语句执行这样的操作。
	
	例:
// Java program to illustrate using
// continue in an if statement
class ContinueDemo
{
    public static void main(String args[])
    {
        for (int i = 0; i < 10; i++)
        {
            // If the number is even
            // skip and continue
            if (i%2 == 0)
                continue;
 
            // If number is odd, print it
            System.out.print(i + " ");
        }
    }
}
输出:
	1 3 5 7 9
	返回: return语句用于从方法显式返回。也就是说,它会导致程序控制权转移回方法的调用者。
	例:
// Java program to illustrate using return
class Return
{
    public static void main(String args[])
    {
        boolean t = true;
        System.out.println("Before the return.");
     
        if (t)
            return;
 
        // Compiler will bypass every statement 
        // after return
        System.out.println("This won't execute.");
    }
}
输出:
Before the return.