//demo eg27_GradeActivity.java class //may skip this example public class eg27_GradeDemo { public static void main (String[] args) { String input; double testScore; eg27_GradedActivity grade = new eg27_GradedActivity(); input = "75"; //should ask user input, skip here testScore = Double.parseDouble(input); //convert to double grade.setScore (testScore); System.out.println("The grade for the test is "+grade.getGrade()); } }