Hello Everyone
I really am new to
Java and have hit my first hurdle.
I have declared 3 instance variables:
and created 2 objects t222 and z333. (no problems here)
I am now wanting to set the studentCode of the course object referenced by t222 to "T222" and the same for the studentCode, from z333 to "Z333".
I know what I have is not right because I keep getting the error:
incompatible types; found: student.Course, required: java.lang.String at line 29, column 12 I have
Could anyone point out to me
PLEASE what I am doing wrong becuase I am going round in circles.
Any help would be much appreciated.