Friday, January 6, 2012

Beginner Java Help??????

The searchFor is the value that you're looking for in the array called arrayOfInts. Your program uses a for loop to inspect arrayOfInts until it finds a index position where the value is equal to searchFor (12 in your program). The index is the place in the array. Remember that arrays start counting places at 0. So, 12 is the 5th place in arrayOfInts but the index value is 4.

No comments:

Post a Comment