Write a driver program to test your Student class created in question #14.

What will be an ideal response?


```
public class StudentTest
{
public static void main(String args[])
{
Student firstStudent = new Student();
Student secondStudent = new Student("Wally Wonders", "xyz557", 2.54);

System.out.println("First Student statistics: ");
System.out.println(firstStudent.getName() + " "
+ firstStudent.getID() + " " + firstStudent.getGPA());
System.out.println("Second Student statistics: ");
System.out.println(secondStudent.getName() + " "
+ secondStudent.getID() + " " + secondStudent.getGPA());

firstStudent.setName("Sharon Smith");
firstStudent.setID("wyh886");
firstStudent.setGPA(3.99);

System.out.println(firstStudent);
System.out.println(secondStudent);

System.out.println("Comparing student objects, evalutes to " +
firstStudent.equals(secondStudent));
}
```

Computer Science & Information Technology

You might also like to view...

FIGURE PPT 2-1 The button and menu shown in the accompanying figure is used to ____.

A. apply fills to text B. apply fills to text boxes C. apply outline colors to text boxes D. apply outline colors to text

Computer Science & Information Technology

To ensure sound internal control, program coding and program processing should be separated.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Three of the most popular local area network systems are Ethernet, IBM Token Ring, and Wireless Ethernet.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Expressed in decimal, the range for RGB colors is 0 to ________

A) 100 B) 127 C) 255 D) 500

Computer Science & Information Technology