Returning a String from a public String (...) class
<p>here is the code</p>

<pre><code>import java.io.*;
import java.lang.*;
import java.util.*;

public class createfile
{
    private Formatter x;

    Scanner keyboard = new Scanner(System.in);


    String s1,s2,s3,s4,s5,s6;
    String aa,bb,cc,dd,ee,ff;



    public void openFile()
    {
        try
        {
            x = new Formatter("password.txt");
        }catch(Exception e)
        {
            System.out.println("\nError");
        }
    }


    public void add(String s1,String s2,String s3,String s4,String s5,String s6)
    {
            Bugatti v = new Bugatti();
            fw m = new fw();
            fw2 s = new fw2();
            fw3 EB = new fw3();
            fw4 e = new fw4();
            fw5 r = new fw5();

        x.format("%s%s%s%s%s%s",aa,bb,cc,dd,ee,ff);

    }


    public void close()
    {
            x.close();


    }


}
</code></pre>

<p>Ok so in a another file i have returned aa bb cc dd ee ff and now x.format is not seeing that!!! but i have in fact returned it in the classes defined as Bugatti and fw,2,3,4,5. now how is't the x.format looking at the return. i know i am doing something wrong as i am a noob at this so please teach me how i can fix this!! thanks  </p>
