By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,653 Members | 1,483 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,653 IT Pros & Developers. It's quick & easy.

what does <identifier> expected mean?

P: 1
public class MachadoIpmg2{

import java.util.Scanner;
//error above ^

i am just learning java so your help would be appreciated Thank You!
Feb 29 '12 #1
Share this Question
Share on Google+
2 Replies

P: 2

Can you show the code where you are getting this error
Feb 29 '12 #2

P: 13,264
You can't put import statements inside class declarations.
import statements must come before the class definition.
Feb 29 '12 #3

Post your reply

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