Recent content by tking88
-
T
Comp Sci What is Instance, Empty Constructor in Java
K I did something like this and all ok now it return the true compare value public boolean equals(Object o) { System.out.println(o instanceof Moof); System.out.println(((Moof)o).getMoofValue()); System.out.println(this.moofValue); //XXX if ((o instanceof Moof) &&...- tking88
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
T
Comp Sci What is Instance, Empty Constructor in Java
What is Instance, Empty Constructor ... in Java How come will return false I put in 2 same name it should return true ? Teacher p1= new Teacher("Nelson"); System.out.println(p1); Teacher p2= new Teacher("Nelson"); System.out.println(p2); System.out.println(p1.equals(p2)); it...- tking88
- Thread
- Empty Java
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help