How to print out the value through classes?
<p>I have problem with printing out the output .</p>

<p>The class methods :</p>

<pre><code>public class Account {
    private String name1;
    private String name2;
    private  double grade1;
    private  double grade2;
    private  double grade3;
    private  double average;
    public void setAccount(String a1 ,String a2 ,double b1,double b2,double b3) {

        a1=name1;
        a2=name2; 
        b1=grade1;
        b2=grade2;
        b3=grade3;
    }

    public void setaverage(double k1){
        k1=average;
    }

    public String getAccount(){
        return name1;
    }

    public String getAccount1(){
        return name2;
    }

    public double getAccount2(){
        return grade1;
    }

    public double getAccount3(){
        return grade2;
    }

    public double getAccount4(){
        return grade3;
    }

    public double getaverage(){
        return average=(grade1+grade2+grade3)/3;
    }
}
</code></pre>

<p>And the main method:</p>

<pre><code>    public static void main(String[] args) {
        Scanner in = new Scanner (System.in);

        Account account= new Account();

        System.out.println("Enter the  frist  and last name of student" );

        String na1=in.nextLine();

        account.getAccount(na1);

    } // end main

} // end class AccountTest
</code></pre>

<p>I have problem in <code>account.getAccount(na1);</code></p>

<p>I tried to print one String to know if the program works .</p>

<p>So how to print the output? </p>

<p>I know that the problem because there's no argument in the get method, but I don't know how to print it, since it's my first time using it .</p>
