java, having a hard getting my print class to print my other class information, please help these are my codes
<pre><code>// my first class
public class FirstProject{
int first_number;

public FirstProject(){
    first_number = 0;
}
public FirstProject(int Fn){
    first_number = Fn;
}
public void Print(){
    System.out.println("First number = " + first_number); System.out.println();
}
</code></pre>

<p>}</p>

<p>//second class in a separate file
// keep getting an error on this class saying that cannot find the . in p1.print();</p>

<pre><code>public class TestProgram {
public static void main(String[] args){

    FirstProject p1 = new FirstProject(10); 

    p1.print(); System.out.println();



}
</code></pre>
