Why don't you create a Team class like this:
class Team {
String name;
public void String getName();
}
Create your teams array like this:
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?