Originally posted by Sam Benry:
Im using Eclipse, and I want to import StdDraw.java
how to do that
I tries
import StdDraw
import StdDraw.java
import StdDraw.class
all are not working, how to import the class?
You need to specify the class, not the file where the class is in.
Open the file, and note the package that the StdDraw class is in. Let's say that it's in some.package, then import via...
import some.package.StdDraw;
Just change some.package to the actual package that StdDraw is in.
Henry