/* Examine the code below, and answer the questions in the main method. Then, trace through the code to determine what the main method would print. Submit a photo of your code and memory trace, using the "A100" style notation we covered in class, to BB. This assignment is worth ten points. */ import java.util.Arrays; public class Bird { private String species; public static String PLANET = "Earth"; private static int count; private String color; private char[] state = {'z', 'z'}; public Bird(String color){ System.out.println("in ctor 1"); this.color = color; count++; } public Bird(String color, String n){ System.out.println("in ctor 2"); color = color; species = n; n = n + " added"; state[0] = 'D'; count++; } public String foo(String color){ species = null; state[1] = 'C'; PLANET = "Mars"; this.color = color; return species; } public String toString(){ return species + " " + PLANET + " " + count + " " + color + " " + Arrays.toString(state); } public static void main(String[] args){ //what is the output (assume no compilation errors) Bird hawk = new Bird("red", "Larry"); System.out.println(hawk.toString()); Bird raptor = hawk; hawk = new Bird("blue", "Kim"); Bird robin = new Bird("pink"); System.out.println(hawk.toString()); System.out.println(raptor.toString()); System.out.println(robin.toString()); System.out.println(hawk.foo("green")); System.out.println(hawk.toString()); System.out.println(raptor.toString()); System.out.println(robin.toString()); System.out.println(hawk.count); System.out.println(Bird.count); } }