<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FStatement_Control%2FContinue_Statement</id>
		<title>Java Tutorial/Statement Control/Continue Statement - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FStatement_Control%2FContinue_Statement"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/Statement_Control/Continue_Statement&amp;action=history"/>
		<updated>2026-04-24T05:45:10Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/Statement_Control/Continue_Statement&amp;diff=5246&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/Statement_Control/Continue_Statement&amp;diff=5246&amp;oldid=prev"/>
				<updated>2010-06-01T05:18:56Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 05:18, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/Statement_Control/Continue_Statement&amp;diff=5245&amp;oldid=prev</id>
		<title> в 17:44, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/Statement_Control/Continue_Statement&amp;diff=5245&amp;oldid=prev"/>
				<updated>2010-05-31T17:44:27Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  Calculating Primes: using continue statement and label ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;continue may be followed by a label to identify which enclosing loop to continue to.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    int nValues = 50;&lt;br /&gt;
    OuterLoop: for (int i = 2; i &amp;lt;= nValues; i++) {&lt;br /&gt;
      for (int j = 2; j &amp;lt; i; j++) {&lt;br /&gt;
        if (i % j == 0) {&lt;br /&gt;
          continue OuterLoop;&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
      System.out.println(i);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;2&lt;br /&gt;
3&lt;br /&gt;
5&lt;br /&gt;
7&lt;br /&gt;
11&lt;br /&gt;
13&lt;br /&gt;
17&lt;br /&gt;
19&lt;br /&gt;
23&lt;br /&gt;
29&lt;br /&gt;
31&lt;br /&gt;
37&lt;br /&gt;
41&lt;br /&gt;
43&lt;br /&gt;
47&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  The continue Statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The continue statement stops the execution of the current iteration and causes control to begin with the next iteration.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;For example, the following code prints the number 0 to 9, except 5.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    for (int i = 0; i &amp;lt; 10; i++) {&lt;br /&gt;
      if (i == 5) {&lt;br /&gt;
        continue;&lt;br /&gt;
      }&lt;br /&gt;
      System.out.println(i);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  The continue statement: skips all or part of a loop iteration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] arg) {&lt;br /&gt;
    int limit = 10;&lt;br /&gt;
    int sum = 0;&lt;br /&gt;
    for (int i = 1; i &amp;lt;= limit; i++) {&lt;br /&gt;
      if (i % 3 == 0) {&lt;br /&gt;
        continue;&lt;br /&gt;
      }&lt;br /&gt;
      sum += i;&lt;br /&gt;
    }&lt;br /&gt;
    System.out.println(sum);&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;37&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  The Labeled continue statement ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] args) {&lt;br /&gt;
    int limit = 20;&lt;br /&gt;
    int factorial = 1;&lt;br /&gt;
    OuterLoop: for (int i = 1; i &amp;lt;= limit; i++) {&lt;br /&gt;
      factorial = 1;&lt;br /&gt;
      for (int j = 2; j &amp;lt;= i; j++) {&lt;br /&gt;
        if (i &amp;gt; 10 &amp;amp;&amp;amp; i % 2 == 1) {&lt;br /&gt;
          continue OuterLoop;&lt;br /&gt;
        }&lt;br /&gt;
        factorial *= j;&lt;br /&gt;
      }&lt;br /&gt;
      System.out.println(i + &amp;quot;! is &amp;quot; + factorial);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;1! is 1&lt;br /&gt;
2! is 2&lt;br /&gt;
3! is 6&lt;br /&gt;
4! is 24&lt;br /&gt;
5! is 120&lt;br /&gt;
6! is 720&lt;br /&gt;
7! is 5040&lt;br /&gt;
8! is 40320&lt;br /&gt;
9! is 362880&lt;br /&gt;
10! is 3628800&lt;br /&gt;
12! is 479001600&lt;br /&gt;
14! is 1278945280&lt;br /&gt;
16! is 2004189184&lt;br /&gt;
18! is -898433024&lt;br /&gt;
20! is -2102132736&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>