A doubt in String Comparison
I have a text file with 15 columns. i need to compare the strings in 4 and 14th column row by row whether they are same or not. If same, i need that particular row. So i used string tokenizer to tokenize the elements in each row and I used equals() method to compare them. I am not getting any output though the program is running without errors. When i debugged it, i noticed the tokens are stored with different id, so if the value is x in 4th col and x in 14 th col but when the id is 24 and 26, so it would neglect the loop? or what could be the reason?
A doubt in String Comparison
===

I have a text file with 15 columns. i need to compare the strings in 4 and 14th column row by row whether they are same or not. If same, i need that particular row. So i used string tokenizer to tokenize the elements in each row and I used equals() method to compare them. I am not getting any output though the program is running without errors. When i debugged it, i noticed the tokens are stored with different id, so if the value is x in 4th col and x in 14 th col but when the id is 24 and 26, so it would neglect the loop? or what could be the reason?