How to repeatedly prompt the user until correct input is given - JAVA | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How to repeatedly prompt the user until correct input is given - JAVA

i need to re-prompt the user everytime they input the wrong information. how do i do this? please help. https://code.sololearn.com/cSr9FMtv0u00/?ref=app https://code.sololearn.com/cSr9FMtv0u00/?ref=app

14th Oct 2018, 5:25 AM
Enzo Cabrera
1 Réponse
- 1
while(input!= desiredInput){ //ask for a input.. }
14th Oct 2018, 5:28 AM
Akib
Akib - avatar