| | |
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 |
-xlint add android api applet application applications array arrays automation bank bi binary blackberry bluetooth chat class client code compile compiler component database development digit eclipse equation error event fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide idea image infinite input int integer j2me java javame javaprojects jetbrains jni jpanel jtable julia learningresources linux list login loop main map method methods mobile myregfun netbeans newbie nonstatic notdisplaying pearl problem program programming project qt recursion scanner screen scrollbar server set sms sort sorting spamblocker sql sqlserver string superclass swing system text-file thread threads tree variablebinding windows xor






