What is the “continue” keyword and how does it work in Java?

前端 未结 13 1569
温柔的废话
温柔的废话 2020-11-22 11:34

I saw this keyword for the first time and I was wondering if someone could explain to me what it does.

  • What is the continue keyword?
  • How
13条回答
  •  抹茶落季
    2020-11-22 11:44

    Basically in java, continue is a statement. So continue statement is normally used with the loops to skip the current iteration.

    For how and when it is used in java, refer link below. It has got explanation with example.

    https://www.flowerbrackets.com/continue-java-example/

    Hope it helps !!

提交回复
热议问题