continue语句的作用是:用来结束当前循环,并进入下一次循环,即仅仅这一次循环结束了,并不是所有的循环结束了,后边的循环依旧进行。continue语句只能用于循环语句中。

在Java语言中,continue 语句用来结束当前循环,并进入下一次循环,即仅仅这一次循环结束了,并不是所有循环结束了,后边的循环依旧进行。
(推荐教程:java入门程序)
下面我们来看一下例子:
public class Continue {
public static void main(String[] args) {
int count = 0;
for(int i = 1; i <p>(视频教程推荐:<a href="https://www.php.cn/course/list/36.html" target="_blank">java视频教程</a>)</p><div class="aritcle_card flexRow artxards">
<div class="artcardd flexRow">
<a class="aritcle_card_img" rel="nofollow" href="/ai/1665" title="AI智研社"><img
src="https://img.php.cn/upload/ai_manual/000/000/000/175680293663484.png" alt="AI智研社" onerror="this.onerror='';this.src='/static/lhimages/moren/morentu.png'" ></a>
<div class="aritcle_card_info flexColumn">
<a rel="nofollow" href="/ai/1665" title="AI智研社" class="overflowclass">AI智研社</a>
<p class="overflowclass">一个围绕人工智能技术与应用建立的综合性AI知识平台,提供相关内容和学习资源。</p>
</div>
<a rel="nofollow" href="/ai/1665" title="AI智研社" class="aritcle_card_btn flexRow flexcenter"><b></b><span>下载</span>
</a>
</div>
</div><p>输出结果:<br></p><p><img src="https://img.php.cn/upload/image/722/165/796/1594429718232907.png?x-oss-process=image/resize,p_40" title="1594429718232907.png" alt="b327cb64f5a02c41630f71241243f1f2e5.png"></p>










