title: Reading from a file and writing it back to a file in java(Having trouble understanding BufferedWriter write method in java)
body: <p>I'm confused with the the java BufferedWriter write method. The java documents says that write takes int as an argument.</p>
  
  <p>void   write(int c)    Writes a single character.</p>
  
  <p>But I have used write method in my code, and I have passed String into it</p>
  
  <pre><code>BufferedReader br=new BufferedReader(file);
  BufferedWriter bw=new BufferedWriter(file1);
  String line=null;
  while((line=br.readLine())!=null) 
  {
    bw.write(line); // Why is this statement working?
    bw.write("\r\n");
  }
  
  I passing "line" to bw.write(line) and "line" is a string, why is this working?Is write 
  method  overloaded?But I don't see it in docs.
  </code></pre>