int val = 0; do{ val++; System.out.println(val); }while(val % 6 != 0);