#While loops question
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
what is numbers.length -6 equal to?
you currently have a while loop that only runs when numbers.length - 6 is equal to 0
i think you might be looking for ```java
while (index != numbers.length - 6 )
To scan all the array using a while loop you can do something like: ```int index = 0;
while (index < numbers.length) {
//do something
index++;
}```
Detected code, here are some useful tools:
int index = 0;
while (index < numbers.length) {
//do something
index++;
}
Thank you both very much
Closed the thread.