do { // 循環體 } while (條件);
核心特點:保證循環體至少執行一次。
int i = 0; do { System.out.println("我愛慕課網"); i++; } while (i < 1000);