I have two strings,String one = new String("word");
String two = new String("word");
Why doesSystem.out.println(one.equals(two));
Return true given that one and two are two different String
objects.
Pyler 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.