I've been trying to check if strings of a
linkedlist contain these fancy double quotations ( “ ) with this code:
FileParser parser = new FileParser("C:\\Users\\_Farzad_\\Desktop\\Contents___.xml");
LinkedList<String> list = parser.xmlParserFromFile();
String string = list.get(0);
String s = "Zott, Christopher, and Raphael Amit. 2007. “Business Model Design and the Performance of Entrepreneurial Firms.” Organization Science 18(2):181–99. ";
but the program output was :
Zott, Christopher, and Raphael Amit. 2007. “Business Model Design and the Performance of Entrepreneurial Firms.” Organization Science 18(2):181–99.
the problem was that I've just copy/pasted the console output to initialize String s , but the result of method contatins() was changed!
I've tried it in eclipse and it worked well. I think it might be a bug somewhere in intellij. I'm using community version 14.1.
I would appreciate if you check it and tell me what the problem is.