title: why my if condition does not work (if (n>2))?
body: <pre><code>//this code is to compare two files and delet stop list word from file algorithm    
  FileReader reader = new FileReader("C:\\Users\\Sara\\Desktop\\IRP\\Information Retrieval\\Algorithm.txt");
  BufferedReader bufferedReader = new BufferedReader(reader);
  FileReader readerStopList = new FileReader("C:/Users/Sara/Desktop/IRP/stopwords2.txt");
  BufferedReader bufferedReaderStopList = new BufferedReader(readerStopList);
  String word, stopword, newWord = "";
  while ((word = bufferedReader.readLine()) != null) {
      for (int k = 0; k &lt; word.split(" ").length; k++) {
          int count = 0;
          newWord = word.split(" ")[k];
          int n = newWord.length();
          if (n &gt; 2) { //this statment to skip words of length 2
              while ((stopword = bufferedReaderStopList.readLine()) != null) {
  
                  for (int j = 0; j &lt; stopword.split(" ").length; j++) {
  
                      if (newWord.equalsIgnoreCase(stopword.split(" ")[j])) {
                          count++;
  
                      }
                  }
              }
              if (count == 0) {
                  System.out.println(newWord);
  
              }
          }
  
      }
  </code></pre>