How to get an array from another class from Score.java to Test.java
<p>hello I want to pass the an array of marks from another class called Score which is in Score.java.
I am using JDK.
and absolute beginner.</p>

<pre><code>public class test {
     public static void main (String[] args)
     { 
        System.out.print("Hello");
        test(Score.testMarks);
     }

     public static void test(Score.testMarks){
         System.out.print(testMarks[n] + " ");
     }
}
</code></pre>

<p>when i build the program, it is saying <code>error: &lt;identifier&gt; expected</code>
How do I have to do?</p>

<p>All I want is to get the array from Score class from Score.java to Test.java</p>

<p>Thanks alot</p>
