Discussioni Q&A
In the short code below, I declared an array of five elements. But I'm getting confused on how to use it in a while loop. My main question is , if the user inputs a userchoice1 value that is less than 1, I want the code to keep looping until the user inputs a number that is not less than 1. But I don't know if the 7th line (userchoice1 [x]++) shows the right way to loop it.
1 Voto
2 Rispostechallege
-1 Voto
1 RispostaPopolare oggi
I need advice
0 Votes
What is Typecasting?
1 Votes
Stream
1 Votes
Subscription
0 Votes
Make a app
0 Votes
Java Advanced Module
0 Votes