6

I have just started working on java, As i downloaded the eclipse and created a java project. Project was working fine, then i imported a class but it's not working due to following lines

StdOut.println(p + "  " + q);

after searching i have replaced it with

System.out.println(p + "  " + q);

and same way for input.

I tried importing system.io.* didn't worked. then i tried import StdIn not worked

As i can feel is that it may be due to different project template/type. and tutorials links will also be helpful. Thanks

evg
  • 1,308
  • 1
  • 7
  • 12
Haseeb Asif
  • 1,766
  • 2
  • 23
  • 41
  • Most likely, you are enrolled in a course which is attempting to simplify the course without delving into the complexities of the Java programming language. You can download the individual classes here: http://introcs.cs.princeton.edu/java/stdlib/ – Ebony Maw Jul 13 '17 at 19:39

1 Answers1

15

StdOut is not a class that comes in the JDK.

Though, StdOut is commonly used in school projects.

Chris Dargis
  • 5,891
  • 4
  • 39
  • 63