Continue

Record confusing Continue

Continue statement

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 ์•„๋ž˜์˜ ๋ฌธ์žฅ์€ ์‹คํ–‰ํ•˜์ง€ ์•Š๊ณ  ๋ฐ˜๋ณต๋ฌธ์„ ๊ณ„์† ์ˆ˜ํ–‰ํ•œ๋‹ค!

Last updated