I watched the Stanford online video lecture about java programming by Mehran Sami.
In every program, you need to include the acm.program.
How should I deal with it?
How could I include the acm.program inside the code?
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.
acm.program sounds like a package, which will contain classes used by the programs created in the lectures.
I assume you downloaded these as a .jar, which you need to add to your eclipse project.
Right click on your project and follow a path, which i think is:
Project => Properties => Java Build Path => Libraries => Add JAR …
Then select the jar, click ok, and the classes should be available to you.
EDIT:
Once you’ve done that you can import the classes you need by adding the following line to the top of you java file:
import acm.program.*;or individual classes like:
import acm.program.DialogProgram;