Don't get compilation error when using three dots notation for parameters : <p>I want to generate CSV files. I have a <code>generateCSV</code> method which takes a filename as parameters and a bunch of entries</p>

<pre><code>private static void generateCSV(String pFilename, String... pColumns) {

    try(FileWriter fileWriter = new FileWriter(pFilename,true)) {
        for(String column : pColumns) {
            fileWriter.append(column);
            fileWriter.append(";");
        }
        fileWriter.append("\n");
        fileWriter.flush();
    }
    catch (IOException e) {
        e.printStackTrace();
    }
}
</code></pre>

<p>When calling the method with <code>generateCSV("myfile.csv")</code> without the entries i don't get any compilation error. I thought that this notation implies passing 1-N parameters from this object type. No ?</p>
