Error: '.class' expected or cannot find symbol method
<p>I can't figure out what exactly is wrong. This is what i get when i compile this program:</p>

<pre><code>cannot find symbol method kuce(java.util.List&lt;java.lang.String&gt;,java.lang.String[]).
</code></pre>

<p>If i change this row:</p>

<pre><code>System.out.print(mauka.kuce(mauka,temp));
</code></pre>

<p>to</p>

<pre><code>System.out.print(mauka.kuce(mauka,temp[]));
</code></pre>

<p>then i get  this:</p>

<pre><code>'.class' expected
</code></pre>

<p>Here is the full code</p>

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

class metodes
{
    String p="";

    public String kuce(List x, String c[]) {
        for (int v=0; v &lt; x.size(); v++) p = p +c[v] ;
        return p;
    }
}

public class ShowFile 
{
    public static void main(String args[]) throws IOException
    {
        int i;
        FileInputStream fin;
        try {
            fin = new FileInputStream(args[0]);
        } catch(FileNotFoundException e) {
            System.out.println(" Fails nav atrasts");
            return;
        } catch(ArrayIndexOutOfBoundsException e) {
            System.out.println(" Ievadiet: ShowFile faila_vards");
            return;
        }

        StringBuffer ab = new StringBuffer();
        String a="";
        String temp[];
        do {
            i = fin.read();
            if (i!=-1) a= a + ((char) i);
        } while(i != -1);

        a = a.replace("\r\n", " ");
        temp = a.split("\\.");
        String h = ".";
        for (int o = 0; o &lt; temp.length; o++) {temp[o] = temp[o] + h;}

        List&lt;String&gt; mauka = Arrays.asList(temp);
        System.out.print(mauka.kuce(mauka,temp));
        fin.close();
    }
}
</code></pre>
