package week10;

public class Dog {

	public String name;

	public Dog(String name) {
		super();
		this.name = name;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Dog other = (Dog) obj;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
	
}

@@ -50,16 +50,53 @@
 ng name;
+%0A%09public int age;%0A%09public int weight;
 %0A%0A%09publi
@@ -145,24 +145,273 @@
 e = name;%0A%09%7D
+%0A%09%0A%09public Dog(String name, int age, int weight) %7B%0A%09%09super();%0A%09%09this.name = name;%0A%09%09this.age = age;%0A%09%09this.weight = weight;%0A%09%7D%0A%09%0A%09%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22Dog %5Bname=%22 + name + %22, age=%22 + age + %22, weight=%22 + weight + %22%5D%22;%0A%09%7D
 %0A%0A%09@Override
@@ -478,16 +478,49 @@
 lt = 1;%0A
+%09%09result = prime * result + age;%0A
 %09%09result
@@ -579,16 +579,52 @@
 ode());%0A
+%09%09result = prime * result + weight;%0A
 %09%09return
@@ -833,16 +833,57 @@
 g) obj;%0A
+%09%09if (age != other.age)%0A%09%09%09return false;%0A
 %09%09if (na
@@ -997,16 +997,63 @@
  false;%0A
+%09%09if (weight != other.weight)%0A%09%09%09return false;%0A
 %09%09return
@@ -1059,15 +1059,16 @@
 n true;%0A
-
 %09%7D%0A
+%0A
 %09%0A%7D%0A

Update Dog.java