title: Using jsoup in java
body: <pre><code>public static void main(String[] args) throws IOException {
             for (int i=21;i&lt;30;i++){
                 path="https://www.super.kg/media/audio/"+i;
                 Document dc = Jsoup.connect(path).timeout(6000).get();
                 Elements body = dc.select("div.clear");
  
                 for (Element item : body) {
                     String    method = item.select("div.media_mtspan.video_desc_text").html();
                     method= method.replaceAll("&lt;br&gt;", "\n");
                     System.out.println(method);
  
                     PrintWriter writer = new PrintWriter("C:\\Users\\cholp\\Desktop\\out.txt", "UTF-8");
                      writer.println(method);
                      writer.close();
                  }
  
              } 
  }
  </code></pre>
  
  <p>help me please, cant write variable "method" to file. after running the programm there is nothing in file</p>