
/**
 * Write a description of class Review here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Review
{
    // instance variables - replace the example below with your own
    private int numberExamQuestions;
    private int maxScore;
    private int grade;

    /**
     * Constructor for objects of class Review
     */
    public Review()
    {
        // initialise instance variables
        numberExamQuestions = 6;
        maxScore = 100;
        grade = 90;
    }
    public void setGrade(int g) {
        grade = g;
    }
    public String toString() {
        return "Test: " + grade + " out of " + 
                maxScore + " on " + numberExamQuestions + " questions ";
    }

  
    public static void main(String[] args){
       String Ben = "Ben Kornfuegrer ";
       String Kathryn = "Kathryn McKinley Strahan ";
       
       String twoNames = Ben.concat(Kathryn);
       
       String small = Kathryn.substring(0,3);
       System.out.println(small);
       
       Review[] allTests = new Review[2];
       
       allTests[0] = new Review();
       allTests[1] = new Review();
       allTests[1].setGrade(100);
       
       Review a = allTests[1];
       a.setGrade(80);
       
       Review tmp = allTests[0];
       allTests[0] = allTests[1];
       allTests[1] = tmp;
       
       for (int i =0; i < allTests.length; i++) {
           
            System.out.println(allTests[i].toString());
        }
       
       
       
    }
}
