// p.57 import java.util.Scanner; class StudentDemo { public static void main(String[] args) { /* Scanner input = new Scanner(System.in); String n; int t; Student one; one = new Student(); one.set("John Smith", 82); one.writeOut(); // two: "Lisa", 66? Student two; two = new Student("Lisa", 66); // output info for Lisa? two.writeOut(); // three: read name and test score from keyboard, and then out. Student three = new Student(); System.out.print("Name: "); n = input.nextLine(); System.out.print("Score: "); t = input.nextInt(); three.set(n, t); three.writeOut(); */ // Q1: Decalre an object aStudent: "Ada, Lee", 77? Student aStudent = new Student("Ada, Lee", 77); // Q2: 77 -- > 82 aStudent.set(82); aStudent.writeOut(); } }