method write in bufferedwriter not accepting arguments
<p>This is my java code in which I get the error described after code.</p>

<pre><code>     import java.util.Scanner;
     import java.util.StringTokenizer;
     import java.io.*;
       import java.util.*;
       public class FileDemo {
public static void main(String args[]){
      Scanner sc=new Scanner(System.in);
      System.out.println("Enter no of persons");
      int person=sc.nextInt();
      File myfile = new File("E:/java/myfile.txt");
      BufferedWriter output = new BufferedWriter(new FileWriter(myfile));
     for(int i=0;i&lt;person;i++)
     {

         System.out.println("Enter Firstname");
         String firstname=sc.next();

         System.out.println("Lastname");
         String lastname=sc.next();
         System.out.println("mobnum");
         int mobnum=sc.nextInt();

         output.write("+firstname+" "+lastname+" "+mobnum+");            
     }
     output.close();
      /*** here change fis to Reader ***/
   FileInputStream fis=new FileInputStream("myfile.txt");
   BufferedReader br=new BufferedReader(fis);
     int i=1;
   String str=null;
        while((str=br.readLine())!=null)
      {

    System.out.println("Person"+i);
    StringTokenizer st=new StringTokenizer(str,"");

    System.out.println("FirstName"+st.nextToken());
    System.out.println("lastname"+st.nextToken());
    System.out.println("country"+st.nextToken());
      }
     }
    }
</code></pre>

<p>Here I'm getting error that The method write(String) in the type Writer is not applicable for the arguments (String,String).           </p>
