#While loops question

1 messages · Page 1 of 1 (latest)

ebon saddle
#

Hello I am currently taking an intro to java course and I am stuck on this assignment for while loops. I was hoping maybe someone on here could possibly help me figure out where I am going wrong.

buoyant sealBOT
#

<@&987246399047479336> please have a look, thanks.

buoyant sealBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

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.

kind canopy
#

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 )

ebon saddle
cyan bobcat
#

To scan all the array using a while loop you can do something like: ```int index = 0;

while (index < numbers.length) {
//do something
index++;
}```

buoyant sealBOT
ebon saddle
#

Thank you both very much

buoyant sealBOT
#

Closed the thread.