Use a vector in method parameter in Java
<p>I want to pass a vector and string in my method parameters, but I'm not sure how to do that. I know that for arrays you can do it like that:</p>

<pre><code>public int[] array_oef5 (int[] nummers) {
</code></pre>

<p>But I have never used this for a vector. Here's my program:</p>

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

class Oef7 {

    public static boolean vContains (String s,  Vector&lt;String&gt; v) {
        boolean b = false;
        System.out.println(s);
        System.out.println(v);
        return b;
    }
}
</code></pre>

<p>I don't get any error with it, but when I open the program in BlueJ, I don't know how I have to enter the values (in arrays it's like: {"Tuna","Fish"}. But how is it in a Vector?</p>