class V {
String s = null;
V(String str){
this.s = str;
}
}
public class MyTest {
public static void main(String[] args) {
V v1 = new V("abc");
V v2 = new V("abc");
System.out.println((v1 == v2) + " " + v1.equals(v2));
}
}
Login in to like
Login in to comment