471,049 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,049 software developers and data experts.

How can I fix the <identifier> expected errors and illegal start of type?

Expand|Select|Wrap|Line Numbers
  1. System.out.println("\t\t Quiz Results");
  2. System.out.printf("%s %15s %15s %15s %15s %n", "Student Name", "Quiz1 Grade", "Quiz2 Grade","Difference", "Average");
  3. System.out.println("===========================================================");
I keep getting errors for the first quotation mark on my code for each of my System.out.print Statements. How can I fix both of these errors, the <identifier> expected error and the illegal start of type error?
1 Week Ago #1
1 6200
dev7060
581 Expert 512MB
Expand|Select|Wrap|Line Numbers
  1. System.out.println("\t\t Quiz Results");
  2. System.out.printf("%s %15s %15s %15s %15s %n", "Student Name", "Quiz1 Grade", "Quiz2 Grade","Difference", "Average");
  3. System.out.println("===========================================================");
I keep getting errors for the first quotation mark on my code for each of my System.out.print Statements. How can I fix both of these errors, the <identifier> expected error and the illegal start of type error?
Statements are probably not present inside a function. Is this the whole program?
1 Week Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by mole40 | last post: by
1 post views Thread by John Luttig | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.