Hello David, excuse me, but what should be happening is that the name you are looking for is just the first item in the array names [n]
Erick Pessoa 2009/7/21 David Seto <[email protected]> > > I did that and my program froze up. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of miga > Sent: Saturday, June 27, 2009 8:39 PM > To: Free Java Programming Online Training Course By Sang Shin > Subject: [java programming] Re: Lesson 1034 - MyOwnWhileLoop > > > > > On Jun 27, 10:45 pm, Dan <[email protected]> wrote: > > > while (i<names.length) > > {i++; > Move the line above > > if (names[i].equals(searchName)){ > > foundName = true; > > break; > > } > just here > > } > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
