Computer Science Homework Solutions
Problem
#25368

Java

Here is a public class called Student

Public class Student {
  public int studID = 0;
  public char studGrade = 'F';}

Use Notepad to write a test class called testStud.java which will instantiate an object called myStudent.  Use the object to write print statments to print the current values of the two attributes.  Next, use the object to change the studID to 127 and the studGrade to an A.  Write code that will display the two attributes studID and studGrade.

Solution
What is this?
By OTA - Overall OTA Rating
Jane Chen, MSc - 5/5
Purchase Cost Now
$2.19 CAD (was ~$15.96)
Included in Download
  • Plain text response
  • Attached file(s):
    • testStud.java
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Databases-derived attribute - Hi, What is derived attribute? Give an example. I require a detailed example and definition of this problem with referencing please. Regards,
  • Trailways Bus Lines - Last week, you and the owner of Trailways Bus Lines sketched out a basic table format to use on the Updated Prices Web page of the Trailways Bus Lines Web site. As you begin to build the Web page, yo ...
  • Example of Database Relationships - Look for an example of a one-to-one relationship, an example of a one-to-many relationship, and an example of a many-to-many relationship in a newspaper, magazine, book, or everyday situation you enco ...
  • Database Concept - How are relationships established?
  • Java Address program with 3 classes - Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber. Then implement a class called FullAddress that inherits the above attributes while ...
Browse