I was able to eliminate the error, but when executing the program, I obtain the following "JohnAdams", instead of "John Adams". This is what I changed
studentName = firstName + lastName;
...
Type: Posts; User: Grendarab
I was able to eliminate the error, but when executing the program, I obtain the following "JohnAdams", instead of "John Adams". This is what I changed
studentName = firstName + lastName;
...
Sorry, I'm not too entirely sure where I can find that particular error statement within the compiler I'm using (Eclipse). Does this help?
Description Resource Path Location Type
Syntax error...
This is what occurs when I attempt to execute the program.
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Syntax error on token "lastName", delete this token
...
Thank You! I edited the code into the proper format. I also added the rest of the code for that particular class, albeit I'm not sure if it's sufficient to solve the issue at hand. There are two more...
I'm having difficulty executing the "LastName" portion of the code. I'm trying to have it so the program will respond with the Name of the student. Unfortunately, the IDE (Eclipse) has stated that...