Using for-each loop to find elements in ArrayList with Scanner

I am fairly new to the programming and I have been stuck with my project for entire day now. I have created the program where I created ArrayList of random numbers 1 though 100. Repetition is decided by a user. After the program creates ArrayList of random number, the program gets another input from the user, number to be searched. Then, the program searches through ArrayList using for-each loop and prints every location of elements that have been created. I am stuck at for-each loop part.. If you can help...

Read More »

By: StackOverFlow - Saturday, 16 June

Related Posts