I'm not a good with java and trying to get implementation from it. I'm running this code, but I got a lot of errors. Main error in
StdOut cannot be resolved
I'm not a good with java and trying to get implementation from it. I'm running this code, but I got a lot of errors. Main error in
StdOut cannot be resolved
Replace StdOut
with System.out
, or add this in the class:
OutputStream StdOut = System.out;
Like Anubian said, use System.out
Or simply compile this, and place it with your Simplex.java
Class file
Got this from the Princeton repository.
StdOut is not declared in the scope. You may be missing an include. The best fix if you are using the Java API is to replace "StdOut" with "System.out". Also be sure to include java.lang.System.
This class is in stdlib.jar . you need to include that jar in your class path to remove these errors. Unfortunatly thic class StdOut does not have package declaration So you can not import it.
You have to create you class in default package to use this class.
I will suggest to use some other output stream.