Java - Two do while loops

Description

Two do while loops

Demo

public class Dowhileloop {

  public static void main(String[] args) {
    // TODO Auto-generated method stub
    int x = 4;// ww w  .j a va  2 s .  co m
    do {
      System.out.println(x);
      x = x + 1;
    } while (x < 20);

    int count = 1;
    do {
      System.out.println("Count is: " + count);
      count++;
    } while (count < 11);

  }
}