View Single Post
  #2 (permalink)  
Old 07-10-2007, 10:32 PM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Why don't you create a Team class like this:

Code:
class Team { String name; public void String getName(); }
Create your teams array like this:

Code:
Team[20] teams;
and then search for the team by checking names of them in a for loop.

That is the logical method of doing this. Why do you need your implementation?
Reply With Quote