Ad
Fundamentals
Arrays
Strings

Given an array of Strings, write a method that determines if there is a "Tyrannosaurus" within the array. If there is, the method returns true. If there isn't or the the array is empty, your method should return false.

Assume the array will only contain Strings.

Examples:
{"Brontosaurus", "Stegosaurus", "Velociraptor"} -> false

{"Boba Fett", "Palm Tree", "Tyrannosaurus", "Croissant"} -> true

public class findT_Rex {
  public static boolean containsT_Rex(String[] things) {
    //insert code!
    return true;
  }
}