@@ -0,0 +1,630 @@
+package week10;%0A%0Apublic class Dog %7B%0A%0A%09public String name;%0A%0A%09public Dog(String name) %7B%0A%09%09super();%0A%09%09this.name = name;%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((name == null) ? 0 : name.hashCode());%0A%09%09return result;%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09Dog other = (Dog) obj;%0A%09%09if (name == null) %7B%0A%09%09%09if (other.name != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!name.equals(other.name))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%09%0A%7D%0A

Create Dog.java