Search:

Type: Posts; User: javapenguin

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    7,668

    Re: How to call int value from another class

    I think perhaps you're going about this the wrong way.
    Here's what you should do.


    Have a GPA class. (You should need only 1 class).
    You can have a GPA in each class.
    You can use an array...
  2. Replies
    7
    Views
    7,668

    Re: How to call int value from another class

    I think I might know. You need to call setGrade() somewhere.

    Maybe like this:

    private double grade;
    public GPA(double grade)
    {
    this.grade = grade;
    setGrade(grade);
    }
Results 1 to 2 of 2