Hello,
In my program, I had a really strange result and I have not managed to fix it but my code seems correct. I read a xml file type line by line and I want a string reference. I arrived at the time that I want to know. In short, I want to read and compare the characters.
Data: <title = Sport"tennis">
Reference: <title = Sport"tennis">
With data, the line of my xml file and reference the line I want. Yet the equality test between the two returns false. would you mind? I also place my code comparison:
Code:
if (! test.equals(test))
{
System.out.System.out.println("Give"+ test);
System.out.System.out.println("Reference"+ + test"\ n");
}
else
{
System.out.System.out.println("Sport is");
}
Bookmarks