Explore BrainMass

Explore BrainMass


    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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.

    © BrainMass Inc. brainmass.com February 24, 2021, 2:30 pm ad1c9bdddf

    Solution Summary

    Java help is given.