| | |
Help on error message, illegal start an ';' expected
![]() |
•
•
Join Date: Nov 2004
Posts: 7
Reputation:
Solved Threads: 0
I am getting the following syntax messages:
illegal start of expression public void display_menu()
(with arrow pointing to the 'p')
and also
';' expected } (with arrow also pointing to the })
This is my code for the first error:
public class InsyStudent extends Student
{
public InsyStudent( String fName, String lName, String ssn )
{
int midTerm;
int finalExam;
int researchProject;
int presentationScore;
public void display_menu()
{
System.out.println( "1) INSY 3305\n2) INSY 3305\n3) INSY 4304");
System.out.println("4) INSY 4305\n5) INSY 4310\n6) INSY 4320\n" );
}
This is my code for the second error:
public String toString()
{
return String.format( "%s %s\t%s", super.toString(), selectCourse() );
}
}
What is the problem?
illegal start of expression public void display_menu()
(with arrow pointing to the 'p')
and also
';' expected } (with arrow also pointing to the })
This is my code for the first error:
public class InsyStudent extends Student
{
public InsyStudent( String fName, String lName, String ssn )
{
int midTerm;
int finalExam;
int researchProject;
int presentationScore;
public void display_menu()
{
System.out.println( "1) INSY 3305\n2) INSY 3305\n3) INSY 4304");
System.out.println("4) INSY 4305\n5) INSY 4310\n6) INSY 4320\n" );
}
This is my code for the second error:
public String toString()
{
return String.format( "%s %s\t%s", super.toString(), selectCourse() );
}
}
What is the problem?
![]() |
Similar Threads
- illegal start of expression (Java)
- error message:unable to start windows/system32/ntfs files corrupted or missing (Windows NT / 2000 / XP)
- using inheritance to make a poker game (Java)
- Identifier expected and Illegal start of Expression errors (Java)
- receiving error "illegal start of expression" (Java)
- Illegal start of expression (Java)
- Weird error message and pc wont start at all (Troubleshooting Dead Machines)
- illegal start of expression (Java)
Other Threads in the Java Forum
- Previous Thread: what is the effect of using constructors in the program?
- Next Thread: problem in hotmail
| Thread Tools | Search this Thread |
2dgraphics 3d @param affinetransform android api apple applet application arc arguments array arrays automation banking binary binarytree bluetooth chatprogramusingobjects class client code color compare component count database derby design detection eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui guitesting helpwithhomework html ide if_statement image integer interface j2me java java.xls javadesktopapplications javaprojects jni jpanel julia keytool keyword linux list macintosh map method methods mobile netbeans nullpointerexception object os pong problem producer program project projectideas read recursion reference replaysolutions rim scanner server set size sms sort splash sql stop string swing terminal threads transforms tree ui unicode validation web windows






