BSIT student @ CSUCI
BSIT student @ CSUCI
BSIT student @ CSUCI
BSIT student @ CSUCI
"I'm not back." - Bill Harding, Twister
BSIT student @ CSUCI
The whole transcript for student1
Transcript:
Exception in thread "main" java.util.IllegalFormatConversionException: f != java.lang.String
at java.util.Formatter$FormatSpecifier.failConversion(Unknown Source)
at java.util.Formatter$FormatSpecifier.printFloat(Unknown Source)
at java.util.Formatter$FormatSpecifier.print(Unknown Source)
at java.util.Formatter.format(Unknown Source)
at java.io.PrintStream.format(Unknown Source)
at java.io.PrintStream.printf(Unknown Source)
at Student.main(Student.java:246)
The gpa is
The whole transcript for student1
Transcript:
Course: Java (4 credits); grade=A
Course: Basic (2 credits); grade=C
Course: C++ (3 credits); grade=D
The gpa is 2.56
Java for student1 -- Course: Java (4 credits); grade=A
Worst grade for student1 -- Course: C++ (3 credits); grade=D
Change the grade to A
The course for student1 is now -- Course: C++ (3 credits); grade=A
The gpa is now 3.56
BSIT student @ CSUCI
BSIT student @ CSUCI
BSIT student @ CSUCI
BSIT student @ CSUCI
"I'm not back." - Bill Harding, Twister
The current value of course is: null
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at Transcript.getCourseGrade(Transcript.java:59)
at Transcript.getWorstGradeIndex(Transcript.java:132)
at Student.main(Student.java:250)
The current value of course is: null
The current value of course is: null
The whole transcript for student1
Transcript:
The gpa is NaN
Java for student1 -- null
BSIT student @ CSUCI
Java 4 A
Basic 2 C
C++ 3 D
END
BSIT student @ CSUCI
"I'm not back." - Bill Harding, Twister
BSIT student @ CSUCI
"I'm not back." - Bill Harding, Twister
"I'm not back." - Bill Harding, Twister
BSIT student @ CSUCI
"I'm not back." - Bill Harding, Twister
BSIT student @ CSUCI
"I'm not back." - Bill Harding, Twister
Originally posted by Jim Yingst:
just set it to a new value, namely the instance you're creating.
BSIT student @ CSUCI
"I'm not back." - Bill Harding, Twister
The method setGrade(char) in the type Course is not applicable for the arguments (String)
BSIT student @ CSUCI
BSIT student @ CSUCI
"I'm not back." - Bill Harding, Twister
BSIT student @ CSUCI
BSIT student @ CSUCI
BSIT student @ CSUCI
BSIT student @ CSUCI
BSIT student @ CSUCI
BSIT student @ CSUCI