Cannot find symbol exception
<pre><code>import java.util.Scanner;
class Question1{
    void test(String s, int d){

        Scanner in = new Scanner(System.in);

        System.out.println("Enter a String");
        s = in.nextLine();
        System.out.println("Enter an Integer");
        d = in.nextInt();

        String c="";

        for(int i=0;i&lt;d;i++){
             c = c + s;
        }
    }
}
class Times{
     public static void main(String args[]){

          Question1 q= new Question1();
          q.test(c);
     }
}
</code></pre>

<p>This is my entire code and it is showing compile time Error : <code>Cannot find symbol c</code>. I have searched regarding it and gone through the code but was not able to fix it.</p>