I have downloaded some Java source code from a book.
It contains many directories and many .java files in each of them.
How can I quickly fix the warning:
the declared package does not match the expected package "16.16-2"?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Point your cursor to wrong declared package name (in editor or in problem view) and press Ctrl+1. That way Eclipse will offer you suggested package name which you can choose.
There you can find more verbose explanation of answer on same question…