Comando while

Comando while

int j = 0;
while(j < 10) {
    System.out.println("" + j);
    j++
}