while 조건문: 조건에따라 반복횟수를 결정해야할때에 주로 사용 , 조건식이 true일 경우에 계속해서 반복하는 문법이다. 조건식이 false가되면 반복을 멈추고 while문을 종료한다. 예제 public class WhileTest01 { public void testwhile() { int i = 1; while (i < 10) { System.out.println(i + "번째 반복문 수행"); i++; } System.out.println("while 종료 후 i: " + i); } public void testwhile02() { int i = 0; String str = "abcdef"; while (i < 6) { char ch = str.charAt(i); // abcdef에서 1은 b이..