A class used to save a file, saves it every time with a different name
<p>I think that I have a quite strange question. I am using a class -in an already existing code-  that was primarily used to open a Save Dialog window. The code that was used is the below:</p>

<pre><code>String savedName;


if (OperatingSystem.isMacOSX()) {
  savedName = showFileDialog(parentView, dialogTitle, contentType, name, true);
} else {
  savedName = showFileChooser(parentView, dialogTitle, contentType, name, true);
}
</code></pre>

<p>so what I did is to put it into block comment and now I would like to save the project, by using a different name every time that the class is called. This name will be taken from an array using this code:</p>

<pre><code>int m = 0;

for (HomePieceOfFurniture piece : home.getFurniture()) {
  if (piece.isVisible()) {
         m++;
  } } // A table used to save the names of the furniture and initialize it
String [] Furniture = new String[m];   
m = 0;

for (HomePieceOfFurniture piece : home.getFurniture()) {
   if (piece.isVisible()) {
       // "a" is used to save the name of the furniture piece
       String a = piece.getName();
       Furniture[m] = a;
       //System.out.printf(Furniture[m]);
       m++;
       }
    }
</code></pre>

<p>What I want is a tip to find how I can understand how this class is called. </p>

<p>Thanks in advance.</p>
