I'm not sure what to do with the while to make this code work.Code:`boolean correct = false;`

do{

numTextBook = Integer.parseInt(JOptionPane.showInputDialog("How many text books are you buying?"));

if(numTextBook >= 0 && numTextBook <= 6)

correct = true;

} while (numTextBook >= 0 && numTextBook <= 6);

Any help would be appreciated!