Results 21 to 22 of 22
Thread: Just a Few Questions
- 01-09-2008, 11:50 AM #21
Member
- Join Date
- Jan 2008
- Posts
- 12
- Rep Power
- 0
- 01-09-2008, 06:21 PM #22
yes because the .length attribute of arrays returns the number of elements in the array. and then, in the for loop, you do i < studentContactManager.length, in which it will iterate through each index of the array (and will never go out of bounds, because you did <. if you put <= it would throw an ArrayIndexOutOfBoundsException at runtime). So good job on that. I can see that you're learning =]
Similar Threads
-
Stuck on Two Questions, Please Help
By sylo18 in forum New To JavaReplies: 5Last Post: 03-11-2008, 01:03 AM -
2 simple java questions
By jimJohnson in forum New To JavaReplies: 2Last Post: 02-02-2008, 09:35 AM -
few java questions
By hiaslpix in forum New To JavaReplies: 4Last Post: 01-01-2008, 05:47 AM -
questions
By Gilgamesh in forum New To JavaReplies: 3Last Post: 11-27-2007, 11:18 PM -
3 Questions
By hiranya in forum AWT / SwingReplies: 4Last Post: 11-14-2007, 04:57 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks