Do-While. Cum utilizam medoda Do cu conditia While ?

public class App {
public static void main(String[] args) {


    Scanner scanner = new Scanner(System.in);

    /*
    System.out.println("Intoduceti un numar: ");
    int value = scanner.nextInt();

    while(value != 5) {
        System.out.println("Introduceti un numar: ");
        value = scanner.nextInt();
    }
    */

    int value = 0;
    do {
        System.out.println("Introduceti un numar7"
                + ": ");
        value = scanner.nextInt();
    }
    while(value != 5);

    System.out.println("Got 5!");
  }
}
Output is:
Programul returneaza numarul introdus de la tastatura.