# Continue

Continue statement

```java
package graph;

public class continue_ex {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		for(int i=0;i<10;i++) {
			if(i<5) { 
				System.out.println(i+"-"+"continue");
				continue;
			} 
			System.out.println("continue를 하게 되면 여기로 이동!"+i);
		}
	}

}

```

Continue 를 만나게 되면, continue 아래의 문장은 실행하지 않고 반복문을 계속 수행한다!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://heunnajo.gitbook.io/algorithms-problem-solving-skills/graph-dfs-bfs/continue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
